Skip to content

Commit c617584

Browse files
authored
bugfix for -S3: allow to use pin 48 for LEDs
needed on boards like "S3 supermini" with ws2812 on gpio48
1 parent c532b5d commit c617584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/xml.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ void appendGPIOinfo() {
269269

270270
// add info about max. # of pins
271271
oappend(SET_F("d.max_gpio="));
272-
#if defined(ESP32)
272+
#if defined(ESP32) && !defined(CONFIG_IDF_TARGET_ESP32S3)
273273
oappendi(NUM_DIGITAL_PINS - 1);
274-
#else //8266
274+
#else //8266 (max=17), or esp32-S3 (max=48)
275275
oappendi(NUM_DIGITAL_PINS); //WLEDMM include pin 17 for Analog
276276
#endif
277277
oappend(SET_F(";"));

0 commit comments

Comments
 (0)