Skip to content

Commit 00cec1c

Browse files
authored
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.
1 parent 407a31f commit 00cec1c

File tree

1 file changed

+4
-0
lines changed
  • ports/espressif/boards/waveshare_esp32_s3_zero

1 file changed

+4
-0
lines changed

ports/espressif/boards/waveshare_esp32_s3_zero/pins.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
static const mp_rom_map_elem_t board_module_globals_table[] = {
1010
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
1111

12+
// BOOT button labeled simply as "B" om silkscreen
13+
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) },
14+
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO0) },
15+
1216
// Top side of the board - left column
1317
// (top to bottom, preceded by 5V, GND & 3.3V)
1418
{ MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) },

0 commit comments

Comments
 (0)