ESP32-C3: Do not default LEDPIN to reserved pin 16

This commit is contained in:
cschwinne
2022-10-07 04:22:59 +02:00
parent b4e3cccf4b
commit e78bf240ca
2 changed files with 6 additions and 5 deletions

View File

@@ -355,7 +355,7 @@
//this is merely a default now and can be changed at runtime
#ifndef LEDPIN
#if defined(ESP8266) || (defined(ARDUINO_ARCH_ESP32) && defined(WLED_USE_PSRAM))
#if defined(ESP8266) || (defined(ARDUINO_ARCH_ESP32) && defined(WLED_USE_PSRAM)) || defined(CONFIG_IDF_TARGET_ESP32C3)
#define LEDPIN 2 // GPIO2 (D4) on Wemod D1 mini compatible boards
#else
#define LEDPIN 16 // aligns with GPIO2 (D4) on Wemos D1 mini32 compatible boards