mirror of
https://github.com/wled/WLED.git
synced 2025-07-13 13:56:35 +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();
|
strip.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DMXInput::disable()
|
||||||
|
{
|
||||||
|
if (initialized)
|
||||||
|
{
|
||||||
|
dmx_driver_disable(inputPortNum);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void DMXInput::enable()
|
||||||
|
{
|
||||||
|
if(initialized)
|
||||||
|
{
|
||||||
|
dmx_driver_enable(inputPortNum);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -12,6 +12,10 @@ public:
|
|||||||
void init(uint8_t rxPin, uint8_t txPin, uint8_t enPin, uint8_t inputPortNum);
|
void init(uint8_t rxPin, uint8_t txPin, uint8_t enPin, uint8_t inputPortNum);
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
|
/**disable dmx receiver (do this before disabling the cache)*/
|
||||||
|
void disable();
|
||||||
|
void enable();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/// overrides everything and turns on all leds
|
/// overrides everything and turns on all leds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user