Cleanup
This commit is contained in:
@@ -95,12 +95,16 @@ void handleDMX() {}
|
|||||||
|
|
||||||
|
|
||||||
#ifdef WLED_ENABLE_DMX_INPUT
|
#ifdef WLED_ENABLE_DMX_INPUT
|
||||||
|
|
||||||
|
#include <esp_dmx.h>
|
||||||
|
|
||||||
|
|
||||||
dmx_port_t dmxPort = 2;
|
dmx_port_t dmxPort = 2;
|
||||||
void initDMX() {
|
void initDMX() {
|
||||||
/* Set the DMX hardware pins to the pins that we want to use. */
|
/* Set the DMX hardware pins to the pins that we want to use. */
|
||||||
int dmxTransmitPin = 2;
|
int dmxTransmitPin = 2;
|
||||||
int dmxReceivePin = 27;
|
int dmxReceivePin = 27;
|
||||||
int dmxEnablePin = -1;
|
int dmxEnablePin = 26;
|
||||||
dmx_set_pin(dmxPort, dmxTransmitPin, dmxReceivePin, dmxEnablePin);
|
dmx_set_pin(dmxPort, dmxTransmitPin, dmxReceivePin, dmxEnablePin);
|
||||||
|
|
||||||
/* Now we can install the DMX driver! We'll tell it which DMX port to use and
|
/* Now we can install the DMX driver! We'll tell it which DMX port to use and
|
||||||
|
|||||||
@@ -438,6 +438,7 @@ void WLED::setup()
|
|||||||
#endif
|
#endif
|
||||||
#ifdef WLED_ENABLE_DMX_INPUT //reserve GPIO2 and 27 as hardcoded DMX pins
|
#ifdef WLED_ENABLE_DMX_INPUT //reserve GPIO2 and 27 as hardcoded DMX pins
|
||||||
pinManager.allocatePin(2, true, PinOwner::DMX);
|
pinManager.allocatePin(2, true, PinOwner::DMX);
|
||||||
|
pinManager.allocatePin(26, true, PinOwner::DMX);
|
||||||
pinManager.allocatePin(27, true, PinOwner::DMX);
|
pinManager.allocatePin(27, true, PinOwner::DMX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -132,10 +132,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WLED_ENABLE_DMX_INPUT
|
|
||||||
#include <esp_dmx.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "src/dependencies/e131/ESPAsyncE131.h"
|
#include "src/dependencies/e131/ESPAsyncE131.h"
|
||||||
#ifdef WLED_ENABLE_MQTT
|
#ifdef WLED_ENABLE_MQTT
|
||||||
#include "src/dependencies/async-mqtt-client/AsyncMqttClient.h"
|
#include "src/dependencies/async-mqtt-client/AsyncMqttClient.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user