Update pins.c to add BOOT button
Currently the BOOT button is not defined as it is on most board. Added BUTTON & D0 aliases for the GPIO0 pin.
This commit is contained in:
parent
407a31f710
commit
00cec1c34f
1 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,10 @@
|
|||
static const mp_rom_map_elem_t board_module_globals_table[] = {
|
||||
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
|
||||
|
||||
// BOOT button labeled simply as "B" om silkscreen
|
||||
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO0) },
|
||||
|
||||
// Top side of the board - left column
|
||||
// (top to bottom, preceded by 5V, GND & 3.3V)
|
||||
{ MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) },
|
||||
|
|
|
|||
Loading…
Reference in a new issue