mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-08 15:03:35 +02:00
Add support for ESP32-S2 build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -36,7 +36,13 @@ tNeopixel pixel[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void led_driver_init() {
|
void led_driver_init() {
|
||||||
|
#ifdef GPIO_NUM_48
|
||||||
|
// ESP32-S3 uses GPIO48
|
||||||
uint8_t gpio = GPIO_NUM_48;
|
uint8_t gpio = GPIO_NUM_48;
|
||||||
|
#else
|
||||||
|
// Other ESP32 (ESP32-S2) may use another GPIO. GPIO15 is used by Mini S2
|
||||||
|
uint8_t gpio = GPIO_NUM_15;
|
||||||
|
#endif
|
||||||
if (phy_data.led_gpio_present) {
|
if (phy_data.led_gpio_present) {
|
||||||
gpio = phy_data.led_gpio;
|
gpio = phy_data.led_gpio;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user