Inital code swapping DMX input over to use esp_dmx
This commit is contained in:
@@ -618,6 +618,17 @@ void WLED::setup()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WLED_ENABLE_DMX_INPUT
|
||||
/* Set the DMX hardware pins to the pins that we want to use. */
|
||||
dmx_set_pin(dmxPort, dmxTransmitPin, dmxReceivePin, dmxEnablePin);
|
||||
|
||||
/* Now we can install the DMX driver! We'll tell it which DMX port to use and
|
||||
which interrupt priority it should have. If you aren't sure which interrupt
|
||||
priority to use, you can use the macro `DMX_DEFAULT_INTR_FLAG` to set the
|
||||
interrupt to its default settings.*/
|
||||
dmx_driver_install(dmxPort, DMX_DEFAULT_INTR_FLAGS);
|
||||
#endif
|
||||
|
||||
//#endif
|
||||
// WLEDMM end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user