rename initDmx() -> initDmxOutput()
This commit is contained in:
@@ -82,7 +82,7 @@ void handleDMXOutput()
|
|||||||
dmx.update(); // update the DMX bus
|
dmx.update(); // update the DMX bus
|
||||||
}
|
}
|
||||||
|
|
||||||
void initDMX() {
|
void initDMXOutput() {
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
dmx.init(512); // initialize with bus length
|
dmx.init(512); // initialize with bus length
|
||||||
#else
|
#else
|
||||||
@@ -90,6 +90,6 @@ void initDMX() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void initDMX(){}
|
void initDMXOutput(){}
|
||||||
void handleDMXOutput() {}
|
void handleDMXOutput() {}
|
||||||
#endif
|
#endif
|
||||||
@@ -69,8 +69,8 @@ uint8_t __attribute__((pure)) gamma8(uint8_t b);
|
|||||||
uint32_t __attribute__((pure)) gamma32(uint32_t); // WLEDMM: added attribute pure
|
uint32_t __attribute__((pure)) gamma32(uint32_t); // WLEDMM: added attribute pure
|
||||||
uint8_t unGamma8(uint8_t value); // WLEDMM revert gamma correction
|
uint8_t unGamma8(uint8_t value); // WLEDMM revert gamma correction
|
||||||
|
|
||||||
//dmx.cpp
|
//dmx_output.cpp
|
||||||
void initDMX();
|
void initDMXOutput();
|
||||||
void handleDMXOutput();
|
void handleDMXOutput();
|
||||||
|
|
||||||
//dmx_input.cpp
|
//dmx_input.cpp
|
||||||
|
|||||||
@@ -705,7 +705,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user