From 036d3db082e6dea508578b14015c9e634d7bdeb6 Mon Sep 17 00:00:00 2001 From: bytiful <55647551+bytiful@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:18:47 +1000 Subject: [PATCH 1/2] fix init sequence in board.c For lilygo_tembed_esp32s3 in display init sequence added command INVON and changed MADCTL from BRG to RGB --- ports/espressif/boards/lilygo_tembed_esp32s3/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/espressif/boards/lilygo_tembed_esp32s3/board.c b/ports/espressif/boards/lilygo_tembed_esp32s3/board.c index b8dfc4d5b1450..2f873086d2657 100644 --- a/ports/espressif/boards/lilygo_tembed_esp32s3/board.c +++ b/ports/espressif/boards/lilygo_tembed_esp32s3/board.c @@ -17,8 +17,9 @@ uint8_t display_init_sequence[] = { 0x01, 0x80, 0x96, // _SWRESET and Delay 150ms 0x11, 0x80, 0xFF, // _SLPOUT and Delay 500ms 0x3A, 0x81, 0x55, 0x0A, // _COLMOD and Delay 10ms + 0x21, 0x80, 0xA, // _INVON 0x13, 0x80, 0x0A, // _NORON and Delay 10ms - 0x36, 0x01, 0xC8, // _MADCTL + 0x36, 0x01, 0xC0, // _MADCTL 0x29, 0x80, 0xFF, // _DISPON and Delay 500ms }; From af7ed5937759598271f554b0f6a37a5ea334a863 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 4 Nov 2024 15:20:37 -0600 Subject: [PATCH 2/2] Apply pre-commit formatting fixes --- ports/espressif/boards/lilygo_tembed_esp32s3/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/espressif/boards/lilygo_tembed_esp32s3/board.c b/ports/espressif/boards/lilygo_tembed_esp32s3/board.c index 2f873086d2657..698e6980eceef 100644 --- a/ports/espressif/boards/lilygo_tembed_esp32s3/board.c +++ b/ports/espressif/boards/lilygo_tembed_esp32s3/board.c @@ -17,7 +17,7 @@ uint8_t display_init_sequence[] = { 0x01, 0x80, 0x96, // _SWRESET and Delay 150ms 0x11, 0x80, 0xFF, // _SLPOUT and Delay 500ms 0x3A, 0x81, 0x55, 0x0A, // _COLMOD and Delay 10ms - 0x21, 0x80, 0xA, // _INVON + 0x21, 0x80, 0xA, // _INVON 0x13, 0x80, 0x0A, // _NORON and Delay 10ms 0x36, 0x01, 0xC0, // _MADCTL 0x29, 0x80, 0xFF, // _DISPON and Delay 500ms