setup PWM status LED on aithinker ESP32-C3 boards

This commit is contained in:
Neradoc 2022-04-01 12:39:20 +02:00
parent be53193dde
commit f9f1edbb08
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,9 @@
#define MICROPY_HW_MCU_NAME "ESP32-C3" #define MICROPY_HW_MCU_NAME "ESP32-C3"
// Status LED // Status LED
#define MICROPY_HW_LED_STATUS (&pin_GPIO19) #define CIRCUITPY_RGB_STATUS_R (&pin_GPIO3)
#define CIRCUITPY_RGB_STATUS_G (&pin_GPIO4)
#define CIRCUITPY_RGB_STATUS_B (&pin_GPIO5)
// Default bus pins // Default bus pins
#define DEFAULT_UART_BUS_RX (&pin_GPIO20) #define DEFAULT_UART_BUS_RX (&pin_GPIO20)

View File

@ -30,7 +30,9 @@
#define MICROPY_HW_MCU_NAME "ESP32-C3FN4" #define MICROPY_HW_MCU_NAME "ESP32-C3FN4"
// Status LED // Status LED
#define MICROPY_HW_LED_STATUS (&pin_GPIO19) #define CIRCUITPY_RGB_STATUS_R (&pin_GPIO3)
#define CIRCUITPY_RGB_STATUS_G (&pin_GPIO4)
#define CIRCUITPY_RGB_STATUS_B (&pin_GPIO5)
// Default bus pins // Default bus pins
#define DEFAULT_UART_BUS_RX (&pin_GPIO20) #define DEFAULT_UART_BUS_RX (&pin_GPIO20)