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;