Skip to content

Commit

Permalink
Merge pull request #244 from julio-matarranz/feat/switch-off-led-dongle
Browse files Browse the repository at this point in the history
feat : fixes #211 switch off led dongle while screen is off
  • Loading branch information
BitMaker-hub authored Nov 29, 2023
2 parents af07816 + 43079f0 commit a6a2f25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/drivers/displays/dongleDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ void dongleDisplay_AnimateCurrentScreen(unsigned long frame)
void dongleDisplay_DoLedStuff(unsigned long frame)
{
#ifdef USE_LED
if (digitalRead(TFT_BL))
{
FastLED.clear(true);
return;
}

switch (mMonitor.NerdStatus)
{
case NM_waitingConfig:
Expand Down

0 comments on commit a6a2f25

Please sign in to comment.