Simu: add support for backlight off

This commit is contained in:
Raphael Coeffic
2022-06-13 22:43:45 +02:00
committed by Raphael Coeffic
parent 3ae39a3050
commit dc75b4916d
6 changed files with 68 additions and 44 deletions
+6 -2
View File
@@ -71,6 +71,10 @@ void lcdOn(){
backlightEnable(BACKLIGHT_LEVEL_MAX);
}
bool isBacklightEnabled() {
return lastDutyCycle != 0;
bool boardBacklightOn;
bool isBacklightEnabled()
{
if (globalData.unexpectedShutdown) return true;
return boardBacklightOn;
}