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:
parent
1aab8a7c29
commit
c55d599565
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user