From 00cec1c34fc776b20dfce8b86bab462e12a231f6 Mon Sep 17 00:00:00 2001 From: Timeline8 Date: Tue, 3 Dec 2024 15:49:41 -0500 Subject: [PATCH 1/4] 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. --- ports/espressif/boards/waveshare_esp32_s3_zero/pins.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c index c4cd4ab82195..3debbc6d163c 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c +++ b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c @@ -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) }, From 593d6e46edb9104adf1acb3ba7226c0caf708989 Mon Sep 17 00:00:00 2001 From: Timeline8 Date: Tue, 3 Dec 2024 17:27:08 -0500 Subject: [PATCH 2/4] Update pins.c for BOOT button on Waveshare S3 Zero Currently the boot button is not defined. Adding BUTTON and D) aliases. --- ports/espressif/boards/waveshare_esp32_s3_zero/pins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c index 3debbc6d163c..1315cbf615df 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c +++ b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c @@ -12,7 +12,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = { // 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) }, From 2340317b25069ec03556be9cc5889bf456a3c258 Mon Sep 17 00:00:00 2001 From: Timeline8 Date: Mon, 9 Dec 2024 00:01:45 -0500 Subject: [PATCH 3/4] Update ports/espressif/boards/waveshare_esp32_s3_zero/pins.c Co-authored-by: Scott Shawcroft --- ports/espressif/boards/waveshare_esp32_s3_zero/pins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c index 1315cbf615df..a0311841259b 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c +++ b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c @@ -9,7 +9,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = { CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS - // BOOT button labeled simply as "B" om silkscreen + // BOOT button labeled simply as "B" on silkscreen { MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) }, { MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO0) }, From 9fe82fe3e922fe13db2c82d9dab657a8516d1ca0 Mon Sep 17 00:00:00 2001 From: Timeline8 Date: Mon, 9 Dec 2024 00:04:27 -0500 Subject: [PATCH 4/4] Update pins.c --- ports/espressif/boards/waveshare_esp32_s3_zero/pins.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c index a0311841259b..868c26be2014 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c +++ b/ports/espressif/boards/waveshare_esp32_s3_zero/pins.c @@ -11,6 +11,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = { // BOOT button labeled simply as "B" on silkscreen { MP_ROM_QSTR(MP_QSTR_BUTTON), MP_ROM_PTR(&pin_GPIO0) }, + { MP_ROM_QSTR(MP_QSTR_IO0), MP_ROM_PTR(&pin_GPIO0) }, { MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO0) }, // Top side of the board - left column