Merge pull request #244 from julio-matarranz/feat/switch-off-led-dongle
feat : fixes #211 switch off led dongle while screen is off
This commit is contained in:
commit
a6a2f2520e
@ -172,6 +172,12 @@ void dongleDisplay_AnimateCurrentScreen(unsigned long frame)
|
|||||||
void dongleDisplay_DoLedStuff(unsigned long frame)
|
void dongleDisplay_DoLedStuff(unsigned long frame)
|
||||||
{
|
{
|
||||||
#ifdef USE_LED
|
#ifdef USE_LED
|
||||||
|
if (digitalRead(TFT_BL))
|
||||||
|
{
|
||||||
|
FastLED.clear(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (mMonitor.NerdStatus)
|
switch (mMonitor.NerdStatus)
|
||||||
{
|
{
|
||||||
case NM_waitingConfig:
|
case NM_waitingConfig:
|
||||||
|
Loading…
Reference in New Issue
Block a user