rename initDmx() -> initDmxOutput()

This commit is contained in:
Arne 2023-08-23 15:04:28 +02:00 committed by Will Tatam
parent 11b48bc374
commit 67e8a00b6d
3 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ void handleDMXOutput()
dmx.update(); // update the DMX bus dmx.update(); // update the DMX bus
} }
void initDMX() { void initDMXOutput() {
#if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2)
dmx.init(512); // initialize with bus length dmx.init(512); // initialize with bus length
#else #else
@ -76,6 +76,6 @@ void initDMX() {
#endif #endif
} }
#else #else
void initDMX(){} void initDMXOutput(){}
void handleDMXOutput() {} void handleDMXOutput() {}
#endif #endif

View File

@ -183,8 +183,8 @@ uint32_t colorBalanceFromKelvin(uint16_t kelvin, uint32_t rgb);
uint16_t approximateKelvinFromRGB(uint32_t rgb); uint16_t approximateKelvinFromRGB(uint32_t rgb);
void setRandomColor(byte* rgb); void setRandomColor(byte* rgb);
//dmx.cpp //dmx_output.cpp
void initDMX(); void initDMXOutput();
void handleDMXOutput(); void handleDMXOutput();
//dmx_input.cpp //dmx_input.cpp

View File

@ -538,7 +538,7 @@ void WLED::setup()
} }
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX_OUTPUT
initDMX(); initDMXOutput();
#endif #endif
#ifdef WLED_ENABLE_DMX_INPUT #ifdef WLED_ENABLE_DMX_INPUT
dmxInput.init(dmxInputReceivePin, dmxInputTransmitPin, dmxInputEnablePin, dmxInputPort); dmxInput.init(dmxInputReceivePin, dmxInputTransmitPin, dmxInputEnablePin, dmxInputPort);