Move dmx_input pin allocations from wled.cpp to dmx.cpp

This commit is contained in:
Arne
2023-08-14 13:58:22 +02:00
committed by Will Tatam
parent 9e2268bd74
commit a0ca243955
5 changed files with 36 additions and 14 deletions

View File

@@ -423,11 +423,14 @@ void WLED::setup()
#ifdef WLED_ENABLE_DMX //reserve GPIO2 as hardcoded DMX pin
PinManager::allocatePin(2, true, PinOwner::DMX);
#endif
<<<<<<< HEAD
#ifdef WLED_ENABLE_DMX_INPUT
if(dmxInputTransmitPin > 0) PinManager::allocatePin(dmxInputTransmitPin, true, PinOwner::DMX);
if(dmxInputReceivePin > 0) PinManager::allocatePin(dmxInputReceivePin, true, PinOwner::DMX);
if(dmxInputEnablePin > 0) PinManager::allocatePin(dmxInputEnablePin, true, PinOwner::DMX);
#endif
=======
>>>>>>> a516a7b8 (Move dmx_input pin allocations from wled.cpp to dmx.cpp)
DEBUG_PRINTLN(F("Registering usermods ..."));
registerUsermods();