From b5ac4405b3d657c5d24dccc421c7c5f3ff4adb5c Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Sat, 20 Oct 2018 15:49:24 +0100 Subject: [PATCH] add support for UNKNOWN ID=0x0001 --- MCUFRIEND_kbv.cpp | 4 +++- extras/mcufriend_how_to.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/MCUFRIEND_kbv.cpp b/MCUFRIEND_kbv.cpp index 6ef8064..fe77b61 100644 --- a/MCUFRIEND_kbv.cpp +++ b/MCUFRIEND_kbv.cpp @@ -2105,7 +2105,9 @@ case 0x4532: // thanks Leodino break; #endif -// goto common_9320; + case 0x0001: + _lcd_capable = 0 | REV_SCREEN | INVERT_GS; //no RGB bug. thanks Ivo_Deshev + goto common_9320; case 0x5408: _lcd_capable = 0 | REV_SCREEN | READ_BGR; //Red 2.4" thanks jorgenv, Ardlab_Gent // _lcd_capable = 0 | REV_SCREEN | READ_BGR | INVERT_GS; //Blue 2.8" might be different diff --git a/extras/mcufriend_how_to.txt b/extras/mcufriend_how_to.txt index 2b88273..22cbefd 100644 --- a/extras/mcufriend_how_to.txt +++ b/extras/mcufriend_how_to.txt @@ -84,6 +84,7 @@ UNKNOWN 240x320 ID=0x1602 UNKNOWN 240x320 ID=0xAC11 UNKNOWN 240x320 ID=0x2053 weird controller from BangGood (was ID=0x0000) UNKNOWN 240x320 ID=0x8031 (no Vertical Scroll) +UNKNOWN 240x320 ID=0x0001 (0x9320 style) Most of these controllers are #define SUPPORT_xxxx by default. You can save Flash memory on a Uno by commenting out the macro(s) in MCUFRIEND_kbv.cpp