Skip to content

Commit 85ea801

Browse files
authored
Merge pull request #6217 from Neradoc/aithinker-c3-status-led
Status LED on AI Thinker ESP32-C3 boards
2 parents dd01fc9 + f9f1edb commit 85ea801

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ports/espressif/boards/ai_thinker_esp32-c3s-2m/mpconfigboard.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#define MICROPY_HW_MCU_NAME "ESP32-C3"
3131

3232
// Status LED
33-
#define MICROPY_HW_LED_STATUS (&pin_GPIO19)
33+
#define CIRCUITPY_RGB_STATUS_R (&pin_GPIO3)
34+
#define CIRCUITPY_RGB_STATUS_G (&pin_GPIO4)
35+
#define CIRCUITPY_RGB_STATUS_B (&pin_GPIO5)
3436

3537
// Default bus pins
3638
#define DEFAULT_UART_BUS_RX (&pin_GPIO20)

ports/espressif/boards/ai_thinker_esp32-c3s/mpconfigboard.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#define MICROPY_HW_MCU_NAME "ESP32-C3FN4"
3131

3232
// Status LED
33-
#define MICROPY_HW_LED_STATUS (&pin_GPIO19)
33+
#define CIRCUITPY_RGB_STATUS_R (&pin_GPIO3)
34+
#define CIRCUITPY_RGB_STATUS_G (&pin_GPIO4)
35+
#define CIRCUITPY_RGB_STATUS_B (&pin_GPIO5)
3436

3537
// Default bus pins
3638
#define DEFAULT_UART_BUS_RX (&pin_GPIO20)

0 commit comments

Comments
 (0)