Skip to content

Commit 59fd547

Browse files
committed
adjust init display _MADCTL for rotation=0
1 parent 6d71d22 commit 59fd547

File tree

1 file changed

+4
-4
lines changed
  • ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m

1 file changed

+4
-4
lines changed

ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m/board.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ uint8_t display_init_sequence[] = {
4040
0x36, 0x01, 0x08, // _MADCTL
4141
0x21, DELAY, 0x0A, // _INVON Hack and Delay 10ms
4242
0x13, DELAY, 0x0A, // _NORON and Delay 10ms
43-
0x36, 0x01, 0xC0, // _MADCTL
43+
0x36, 0x01, 0x68, // _MADCTL
4444
0x29, DELAY, 0xFF, // _DISPON and Delay 500ms
4545
};
4646

@@ -79,9 +79,9 @@ static void display_init(void) {
7979
bus,
8080
240, // width (after rotation)
8181
135, // height (after rotation)
82-
53, // column start
83-
40, // row start
84-
270, // rotation
82+
40, // column start
83+
53, // row start
84+
0, // rotation
8585
16, // color depth
8686
false, // grayscale
8787
false, // pixels in a byte share a row. Only valid for depths < 8

0 commit comments

Comments
 (0)