fixes
This commit is contained in:
parent
7d1a46d2fc
commit
5c45cbff3f
5
glcd.c
5
glcd.c
@ -77,8 +77,13 @@ static void lcdSetCursor(uint16_t x, uint16_t y) {
|
||||
}
|
||||
}
|
||||
else if(DeviceCode==0x9919) {
|
||||
if(orientation == portrait) {
|
||||
lcdWriteReg(0x004e, x);
|
||||
lcdWriteReg(0x004f, y);
|
||||
} else if(orientation == landscape) {
|
||||
lcdWriteReg(0x004e, y);
|
||||
lcdWriteReg(0x004f, x);
|
||||
}
|
||||
} else {
|
||||
lcdWriteReg(0x0020, x);
|
||||
lcdWriteReg(0x0021, y);
|
||||
|
Loading…
Reference in New Issue
Block a user