Turn dmx_into into class with state.
This is much nicer to read and in the future more state will be added to support all the rdm stuff.
This commit is contained in:
@@ -67,6 +67,9 @@ void WLED::loop()
|
||||
#ifdef WLED_ENABLE_DMX
|
||||
handleDMX();
|
||||
#endif
|
||||
#ifdef WLED_ENABLE_DMX_INPUT
|
||||
dmxInput.update();
|
||||
#endif
|
||||
|
||||
#ifdef WLED_DEBUG
|
||||
unsigned long usermodMillis = millis();
|
||||
@@ -527,7 +530,8 @@ void WLED::setup()
|
||||
initDMX();
|
||||
#endif
|
||||
#ifdef WLED_ENABLE_DMX_INPUT
|
||||
initDMXInput();
|
||||
const uint8_t dmxInputPortNumber = 2; //TODO turn into config variable?!
|
||||
dmxInput.init(dmxInputReceivePin, dmxInputTransmitPin, dmxInputEnablePin, dmxInputPortNumber);
|
||||
#endif
|
||||
|
||||
#ifdef WLED_ENABLE_ADALIGHT
|
||||
|
||||
Reference in New Issue
Block a user