Skip to content

Commit 2a64578

Browse files
authored
Merge pull request #8773 from RetiredWizard/lilygos2tft
Configure Lilygo ttgo T8 S2 ST7789 screen with no rotation
2 parents d3b331c + 3138058 commit 2a64578

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

ports/espressif/boards/lilygo_ttgo_t8_s2_st7789/board.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ uint8_t display_init_sequence[] = {
4141
// normal display mode on
4242
0x13, 0,
4343
// display and color format settings
44-
0x36, 1, 0x08,
44+
0x36, 1, 0x68,
4545
0xB6, 2, 0x0A, 0x82,
4646
0x3A, 1 | DELAY, 0x55, 10,
4747
// ST7789V frame rate setting
@@ -98,9 +98,9 @@ static void display_init(void) {
9898
bus,
9999
240, // width (after rotation)
100100
135, // height (after rotation)
101-
52, // column start
102-
40, // row start
103-
90, // rotation
101+
40, // column start
102+
53, // row start
103+
0, // rotation
104104
16, // color depth
105105
false, // grayscale
106106
false, // pixels in a byte share a row. Only valid for depths < 8

0 commit comments

Comments
 (0)