1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00

fix(core): clear model R display before turning it on

This commit is contained in:
tychovrahe 2022-10-20 12:53:41 +02:00
parent 1aab8a7c29
commit c55d599565

View File

@ -246,6 +246,13 @@ static void send_init_seq_SH1107(void) {
// Vpp stabilization period // Vpp stabilization period
HAL_Delay(100); 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 // Display ON
CMD(0xAF); CMD(0xAF);
} }