1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +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
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);
}