Inital code swapping DMX input over to use esp_dmx

This commit is contained in:
Will Tatam
2023-02-18 16:05:42 +00:00
parent a6b52a6e1e
commit 5b76df903f
4 changed files with 73 additions and 8 deletions

View File

@@ -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
}