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:
Timeline8 2024-12-03 15:49:41 -05:00 committed by GitHub
parent 407a31f710
commit 00cec1c34f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) },