From 3150f3b448a492a39ec26edb11a99ea1226e7280 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 25 Jan 2026 17:12:04 +0100 Subject: [PATCH] use correct DMXSerial object on -S2 and -C3 --- wled00/dmx_output.cpp | 2 +- wled00/wled.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wled00/dmx_output.cpp b/wled00/dmx_output.cpp index 2fdc826a..dae82256 100644 --- a/wled00/dmx_output.cpp +++ b/wled00/dmx_output.cpp @@ -99,7 +99,7 @@ void handleDMXOutput() } void initDMXOutput() { - #ifdef ESP8266 + #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) dmx.init(512); // initialize with bus length #else dmx.initWrite(512); // initialize with bus length diff --git a/wled00/wled.h b/wled00/wled.h index 9daf4a8d..73a4286d 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -166,7 +166,7 @@ #ifdef WLED_ENABLE_DMX #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) #include "src/dependencies/dmx/ESPDMX.h" - #else //ESP32 + #else //ESP32 or ESP32-S3 #include "src/dependencies/dmx/SparkFunDMX.h" #endif #endif @@ -468,7 +468,7 @@ WLED_GLOBAL bool arlsDisableGammaCorrection _INIT(true); // activate if WLED_GLOBAL bool arlsForceMaxBri _INIT(false); // enable to force max brightness if source has very dark colors that would be black #ifdef WLED_ENABLE_DMX - #ifdef ESP8266 + #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) WLED_GLOBAL DMXESPSerial dmx; #else //ESP32 WLED_GLOBAL SparkFunDMX dmx;