From 5dd4e663c9fbbb1b3efb0e75d31a906321f4af08 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Wed, 28 Jun 2017 14:27:54 +0100 Subject: [PATCH] ILI9225 GS and scroll --- MCUFRIEND_kbv.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MCUFRIEND_kbv.cpp b/MCUFRIEND_kbv.cpp index be8993f..55d1e4f 100644 --- a/MCUFRIEND_kbv.cpp +++ b/MCUFRIEND_kbv.cpp @@ -730,8 +730,9 @@ void MCUFRIEND_kbv::vertScroll(int16_t top, int16_t scrollines, int16_t offset) WriteCmdData(0x43, vsp - top); //SST break; #endif -#ifdef SUPPORT_0154 - case 0x0154: +#if defined(SUPPORT_0154) || defined(SUPPORT_9225) //thanks tongbajiel + case 0x9225: + case 0x0154: WriteCmdData(0x31, sea); //SEA WriteCmdData(0x32, top); //SSA WriteCmdData(0x33, vsp - top); //SST @@ -1894,7 +1895,7 @@ case 0x4532: // thanks Leodino #define ILI9225C_INVON 0x21 case 0x9225: - _lcd_capable = REV_SCREEN | INVERT_GS; + _lcd_capable = REV_SCREEN; //thanks tongbajiel static const uint16_t ILI9225_regValues[] PROGMEM = { /* Start Initial Sequence */ /* Set SS bit and direction output from S528 to S1 */