rename global dmx... variables to dmxInput...

This is the first step in supporting both dmx input and dmx output on different pins.
This commit is contained in:
Arne
2023-08-14 13:28:34 +02:00
committed by Will Tatam
parent 9e37d7051c
commit 702d085117
6 changed files with 108 additions and 1 deletions

View File

@@ -423,6 +423,11 @@ void WLED::setup()
#ifdef WLED_ENABLE_DMX //reserve GPIO2 as hardcoded DMX pin
PinManager::allocatePin(2, true, PinOwner::DMX);
#endif
#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
DEBUG_PRINTLN(F("Registering usermods ..."));
registerUsermods();