mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-24 13:22:05 +00:00
display: update display_unsleep
This commit is contained in:
parent
5e867cc092
commit
f53ec3f928
@ -33,11 +33,12 @@ static void __attribute__((unused)) display_sleep(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void display_unsleep(void) {
|
static void display_unsleep(void)
|
||||||
|
{
|
||||||
#if DISPLAY_ILI9341V || DISPLAY_ST7789V
|
#if DISPLAY_ILI9341V || DISPLAY_ST7789V
|
||||||
CMD(0x11); // exit sleep
|
CMD(0x11); // SLPOUT: Sleep Out
|
||||||
HAL_Delay(20);
|
HAL_Delay(5); // need to wait 5 milliseconds after "sleep out" before sending any new commands
|
||||||
CMD(0x29); // display on
|
CMD(0x29); // DISPON: Display On
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user