1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

display: update display_sleep

This commit is contained in:
mcudev 2017-11-10 14:14:45 -05:00
parent 2ea5d102a8
commit 5e867cc092

View File

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