Inital code on adding DMX input support
This commit is contained in:
@@ -82,6 +82,11 @@ void handleDMX()
|
|||||||
dmx.update(); // update the DMX bus
|
dmx.update(); // update the DMX bus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
void handleDMX() {}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(WLED_ENABLE_DMX) || defined(WLED_ENABLE_DMX_INPUT)
|
||||||
void initDMX() {
|
void initDMX() {
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
dmx.init(512); // initialize with bus length
|
dmx.init(512); // initialize with bus length
|
||||||
@@ -89,9 +94,7 @@ void initDMX() {
|
|||||||
dmx.initWrite(512); // initialize with bus length
|
dmx.initWrite(512); // initialize with bus length
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
void handleDMX() {}
|
|
||||||
void initDMX() {}
|
void initDMX() {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user