Place port setup all in dmx.cpp

This commit is contained in:
Will Tatam
2023-03-23 18:47:57 +00:00
parent ed54d102ff
commit fb7fa5ab6c
2 changed files with 2 additions and 3 deletions

View File

@@ -95,8 +95,10 @@ void handleDMX() {}
#ifdef WLED_ENABLE_DMX_INPUT
dmx_port_t dmxPort = 2;
void initDMX() {
/* Set the DMX hardware pins to the pins that we want to use. */
int dmxTransmitPin, dmxReceivePin, dmxEnablePin = -1;
dmx_set_pin(dmxPort, dmxTransmitPin, dmxReceivePin, dmxEnablePin);
/* Now we can install the DMX driver! We'll tell it which DMX port to use and

View File

@@ -398,9 +398,6 @@ WLED_GLOBAL bool arlsForceMaxBri _INIT(false); // enable to f
#endif
WLED_GLOBAL uint16_t e131ProxyUniverse _INIT(0); // output this E1.31 (sACN) / ArtNet universe via MAX485 (0 = disabled)
#endif
#ifdef WLED_ENABLE_DMX_INPUT
dmx_port_t dmxPort = 1;
#endif
WLED_GLOBAL uint16_t e131Universe _INIT(1); // settings for E1.31 (sACN) protocol (only DMX_MODE_MULTIPLE_* can span over consequtive universes)
WLED_GLOBAL uint16_t e131Port _INIT(5568); // DMX in port. E1.31 default is 5568, Art-Net is 6454
WLED_GLOBAL byte e131Priority _INIT(0); // E1.31 port priority (if != 0 priority handling is active)