1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-03 03:11:17 +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 committed by Martin Milata
parent 5a991f3244
commit e30fdddd83

View File

@ -244,6 +244,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);
} }