From e30fdddd836703dd74d5aea6885380c1fa3cef85 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Thu, 20 Oct 2022 12:53:41 +0200 Subject: [PATCH] fix(core): clear model R display before turning it on --- core/embed/trezorhal/displays/ug-2828tswig01.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/embed/trezorhal/displays/ug-2828tswig01.c b/core/embed/trezorhal/displays/ug-2828tswig01.c index 4c3c7991b1..0b750a9040 100644 --- a/core/embed/trezorhal/displays/ug-2828tswig01.c +++ b/core/embed/trezorhal/displays/ug-2828tswig01.c @@ -244,6 +244,13 @@ static void send_init_seq_SH1107(void) { // Vpp stabilization period HAL_Delay(100); + display_set_window(0, 0, MAX_DISPLAY_RESX - 1, MAX_DISPLAY_RESY - 1); + for (int i = 0; i < DISPLAY_RESY; i++) { + for (int j = 0; j < DISPLAY_RESX; j++) { + display_pixeldata(0); + } + } + // Display ON CMD(0xAF); }