NL must be correct for vertical scroll

This commit is contained in:
prenticedavid
2018-04-21 16:30:19 +01:00
parent 922af5c09e
commit dc30e2ac63

View File

@@ -427,7 +427,8 @@ void MCUFRIEND_kbv::setRotation(uint8_t r)
_MC = 0x20, _MP = 0x21, _MW = 0x22;
GS = (val & 0x80) ? (1 << 9) : 0;
SS_v = (val & 0x40) ? (1 << 8) : 0;
WriteCmdData(0x01, GS | SS_v | 0x0028); // set Driver Output Control
// S6D0139 requires NL = 0x27, S6D0154 NL = 0x28
WriteCmdData(0x01, GS | SS_v | ((_lcd_ID == 0x0139) ? 0x27 : 0x28));
goto common_ORG;
#endif
case 0x5420: