mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
remove uncalled 0x6814, force ML=0 for 0x1511
This commit is contained in:
@@ -323,16 +323,16 @@ void MCUFRIEND_kbv::setRotation(uint8_t r)
|
||||
d[2] = 0x3B;
|
||||
WriteCmdParamN(0xB6, 3, d);
|
||||
goto common_MC;
|
||||
} else if (_lcd_ID == 0x1963 || _lcd_ID == 0x9481 || _lcd_ID == 0x1511 || _lcd_ID == 0x6814) {
|
||||
} else if (_lcd_ID == 0x1963 || _lcd_ID == 0x9481 || _lcd_ID == 0x1511) {
|
||||
if (val & 0x80)
|
||||
val |= 0x01; //GS
|
||||
if ((val & 0x40))
|
||||
val |= 0x02; //SS
|
||||
if (_lcd_ID == 0x1963 || _lcd_ID == 0x6814) val &= ~0xC0;
|
||||
if (_lcd_ID == 0x1963) val &= ~0xC0;
|
||||
if (_lcd_ID == 0x9481) val &= ~0xD0;
|
||||
if (_lcd_ID == 0x1511) {
|
||||
val &= ~0x01; //remove flip vert
|
||||
val |= 0xC0; //force penguin 180 rotation, keep ML
|
||||
val &= ~0x10; //remove ML
|
||||
val |= 0xC0; //force penguin 180 rotation
|
||||
}
|
||||
// val &= (_lcd_ID == 0x1963) ? ~0xC0 : ~0xD0; //MY=0, MX=0 with ML=0 for ILI9481
|
||||
goto common_MC;
|
||||
|
||||
Reference in New Issue
Block a user