mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 22:37:18 +00:00
add enable/disable methods for dmxInput
This commit is contained in:
parent
5525a21696
commit
033c7abe62
@ -147,4 +147,19 @@ void DMXInput::turnOnAllLeds()
|
||||
strip.show();
|
||||
}
|
||||
|
||||
void DMXInput::disable()
|
||||
{
|
||||
if (initialized)
|
||||
{
|
||||
dmx_driver_disable(inputPortNum);
|
||||
}
|
||||
}
|
||||
void DMXInput::enable()
|
||||
{
|
||||
if(initialized)
|
||||
{
|
||||
dmx_driver_enable(inputPortNum);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -12,6 +12,10 @@ public:
|
||||
void init(uint8_t rxPin, uint8_t txPin, uint8_t enPin, uint8_t inputPortNum);
|
||||
void update();
|
||||
|
||||
/**disable dmx receiver (do this before disabling the cache)*/
|
||||
void disable();
|
||||
void enable();
|
||||
|
||||
private:
|
||||
|
||||
/// overrides everything and turns on all leds
|
||||
|
Loading…
x
Reference in New Issue
Block a user