feat : fixes #211 switch off led dongle while screen is off
This commit is contained in:
parent
af0781699d
commit
43079f0f46
@ -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