Added CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS

This is a recent addition to add `board.board_id` and `board.__name__`.
This commit is contained in:
Dan Halbert 2021-09-20 16:52:16 -04:00 committed by GitHub
parent de55073eea
commit 951ea46de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
#include "shared-bindings/board/__init__.h"
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO0) },
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO0) },
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO1) },