From f7ee06670ad70ab980c2b83b768e299368994822 Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Sun, 31 May 2020 23:09:09 +0100 Subject: [PATCH] Add 2nd reset for the ILI9341 LCD --- main/st7789.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/st7789.cpp b/main/st7789.cpp index b082c14..d91ba69 100644 --- a/main/st7789.cpp +++ b/main/st7789.cpp @@ -95,7 +95,8 @@ static const uint8_t ST7789_init[] = { }; static const uint8_t ILI9341_init[] = { - 0x01, 0xD0, // Software RESET + 0x01, 0xE0, // 1st Software RESET + 0x01, 0xE0, // 2nd Software RESET 0xCF, 3, 0x00, 0x83, 0x30 , // Power contorl B, power control = 0, DC_ENA = 1 0xED, 4, 0x64, 0x03, 0x12, 0x81 , // Power on sequence control, cp1 keeps 1 frame, 1st frame enable, vcl = 0, ddvdh=3, vgh=1, vgl=2, DDVDH_ENH=1 0xE8, 3, 0x85, 0x01, 0x79 , // Driver timing control A, non-overlap=default +1, EQ=default - 1, CR=default, pre-charge=default - 1