8000 setup PWM status LED on aithinker ESP32-C3 boards · kdb424/circuitpython@f9f1edb · GitHub
[go: up one dir, main page]

Skip to content

Commit f9f1edb

Browse files
committed
setup PWM status LED on aithinker ESP32-C3 boards
1 parent be53193 commit f9f1edb

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)
0