fixes
This commit is contained in:
parent
7d1a46d2fc
commit
5c45cbff3f
1 changed files with 9 additions and 4 deletions
13
glcd.c
13
glcd.c
|
@ -77,11 +77,16 @@ static void lcdSetCursor(uint16_t x, uint16_t y) {
|
|||
}
|
||||
}
|
||||
else if(DeviceCode==0x9919) {
|
||||
lcdWriteReg(0x004e,x);
|
||||
lcdWriteReg(0x004f,y);
|
||||
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);
|
||||
lcdWriteReg(0x0020, x);
|
||||
lcdWriteReg(0x0021, y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue