fix orientations in ssd1289

ugfx_release_2.6
trsaunders 2012-07-22 18:00:59 +01:00
parent cc87941bc7
commit b0d3eb7488
1 changed files with 2 additions and 2 deletions

View File

@ -242,14 +242,14 @@ void lld_lcdSetOrientation(uint8_t newOrientation) {
break;
case portraitInv:
lld_lcdWriteReg(0x0001, 0x6B3F);
/* ID = 00 AM = 0 */
/* ID = 01 AM = 0 */
lld_lcdWriteReg(0x0011, 0x6050);
lcd_height = SCREEN_HEIGHT;
lcd_width = SCREEN_WIDTH;
break;
case landscapeInv:
lld_lcdWriteReg(0x0001, 0x693F);
/* ID = 00 AM = 1 */
/* ID = 10 AM = 1 */
lld_lcdWriteReg(0x0011, 0x6068);
lcd_height = SCREEN_WIDTH;
lcd_width = SCREEN_HEIGHT;