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:
BitMaker 2023-11-29 22:26:12 +01:00 committed by GitHub
commit a6a2f2520e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: