Merge pull request #8773 from RetiredWizard/lilygos2tft
Configure Lilygo ttgo T8 S2 ST7789 screen with no rotation
This commit is contained in:
commit
2a64578de5
1 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ uint8_t display_init_sequence[] = {
|
|||
// normal display mode on
|
||||
0x13, 0,
|
||||
// display and color format settings
|
||||
0x36, 1, 0x08,
|
||||
0x36, 1, 0x68,
|
||||
0xB6, 2, 0x0A, 0x82,
|
||||
0x3A, 1 | DELAY, 0x55, 10,
|
||||
// ST7789V frame rate setting
|
||||
|
|
@ -98,9 +98,9 @@ static void display_init(void) {
|
|||
bus,
|
||||
240, // width (after rotation)
|
||||
135, // height (after rotation)
|
||||
52, // column start
|
||||
40, // row start
|
||||
90, // rotation
|
||||
40, // column start
|
||||
53, // row start
|
||||
0, // rotation
|
||||
16, // color depth
|
||||
false, // grayscale
|
||||
false, // pixels in a byte share a row. Only valid for depths < 8
|
||||
|
|
|
|||
Loading…
Reference in a new issue