Skip to content

Commit 8a9ccf2

Browse files
JF002mark9064
authored andcommitted
Adjust display init sequence to fix a rotation issue on the new ST7789P3 display controller.
1 parent 6572b50 commit 8a9ccf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/drivers/St7789.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ void St7789::Init() {
1717
HardwareReset();
1818
SoftwareReset();
1919
Command2Enable();
20-
SleepOut();
2120
PixelFormat();
2221
MemoryDataAccessControl();
2322
SetAddrWindow(0, 0, Width, Height);
@@ -32,6 +31,7 @@ void St7789::Init() {
3231
SetVdv();
3332
PowerControl();
3433
GateControl();
34+
SleepOut();
3535
DisplayOn();
3636
}
3737

0 commit comments

Comments
 (0)