Inital code on adding DMX input support

This commit is contained in:
Will Tatam
2023-02-18 13:22:43 +00:00
parent 3c15b7424e
commit ef48b1f5cd

View File

@@ -82,6 +82,11 @@ void handleDMX()
dmx.update(); // update the DMX bus
}
#else
void handleDMX() {}
#endif
#if defined(WLED_ENABLE_DMX) || defined(WLED_ENABLE_DMX_INPUT)
void initDMX() {
#ifdef ESP8266
dmx.init(512); // initialize with bus length
@@ -89,9 +94,7 @@ void initDMX() {
dmx.initWrite(512); // initialize with bus length
#endif
}
#else
void handleDMX() {}
void initDMX() {}
#endif