mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Sleep mode backlight control
This commit is contained in:
1 parent
64ca5947aa
commit
11a91e0cb9
1 file changed
+3
@@ -1628,6 +1628,7 @@ void APP_TimeSlice500ms(void)
|
||||
gWakeUp = true;
|
||||
// TODO:
|
||||
// PWM_PLUS0_CH0_COMP = 0;
|
||||
BACKLIGHT_SetBrightness(0);
|
||||
ST7565_ShutDown();
|
||||
}
|
||||
else if(gSleepModeCountdown_500ms != 0 && gSleepModeCountdown_500ms < 21 && gSetting_set_off != 0)
|
||||
@@ -1635,10 +1636,12 @@ void APP_TimeSlice500ms(void)
|
||||
if(gSleepModeCountdown_500ms % 4 == 0)
|
||||
{
|
||||
// PWM_PLUS0_CH0_COMP = value[gEeprom.BACKLIGHT_MAX] * 4; // Max brightness
|
||||
BACKLIGHT_SetBrightness(gEeprom.BACKLIGHT_MAX);
|
||||
}
|
||||
else
|
||||
{
|
||||
// PWM_PLUS0_CH0_COMP = 0;
|
||||
BACKLIGHT_SetBrightness(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user