mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 21:38:26 +00:00
display: update display_sleep
This commit is contained in:
parent
2ea5d102a8
commit
5e867cc092
@ -24,11 +24,12 @@
|
||||
|
||||
#define LED_PWM_TIM_PERIOD (10000)
|
||||
|
||||
static void __attribute__((unused)) display_sleep(void) {
|
||||
static void __attribute__((unused)) display_sleep(void)
|
||||
{
|
||||
#if DISPLAY_ILI9341V || DISPLAY_ST7789V
|
||||
CMD(0x28); // display off
|
||||
HAL_Delay(20);
|
||||
CMD(0x10); // enter sleep
|
||||
CMD(0x28); // DISPOFF: Display Off
|
||||
CMD(0x10); // SLPIN: Sleep in
|
||||
HAL_Delay(5); // need to wait 5 milliseconds after "sleep in" before sending any new commands
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user