mirror of
https://github.com/wled/WLED.git
synced 2025-07-16 23:36:35 +00:00
rename initDmx() -> initDmxOutput()
This commit is contained in:
parent
11b48bc374
commit
67e8a00b6d
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user