Skip to content

Commit 4c0fb4c

Browse files
authored
Merge pull request #9858 from Timeline8/Waveshare-S3-Zero-pins.c-adding-BUTTON-&-D0-to-GPIO0
Update Waveshare S3 Zero pins.c to add BOOT button
2 parents 7171bcc + 9fe82fe commit 4c0fb4c

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

ports/espressif/boards/waveshare_esp32_s3_zero/pins.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
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" on silkscreen
13+
{ MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) },
14+
{ MP_ROM_QSTR(MP_QSTR_IO0), MP_ROM_PTR(&pin_GPIO0) },
15+
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO0) },
16+
1217
// Top side of the board - left column
1318
// (top to bottom, preceded by 5V, GND & 3.3V)
1419
{ MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) },

0 commit comments

Comments
 (0)