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; break;
case portraitInv: case portraitInv:
lld_lcdWriteReg(0x0001, 0x6B3F); lld_lcdWriteReg(0x0001, 0x6B3F);
/* ID = 00 AM = 0 */ /* ID = 01 AM = 0 */
lld_lcdWriteReg(0x0011, 0x6050); lld_lcdWriteReg(0x0011, 0x6050);
lcd_height = SCREEN_HEIGHT; lcd_height = SCREEN_HEIGHT;
lcd_width = SCREEN_WIDTH; lcd_width = SCREEN_WIDTH;
break; break;
case landscapeInv: case landscapeInv:
lld_lcdWriteReg(0x0001, 0x693F); lld_lcdWriteReg(0x0001, 0x693F);
/* ID = 00 AM = 1 */ /* ID = 10 AM = 1 */
lld_lcdWriteReg(0x0011, 0x6068); lld_lcdWriteReg(0x0011, 0x6068);
lcd_height = SCREEN_WIDTH; lcd_height = SCREEN_WIDTH;
lcd_width = SCREEN_HEIGHT; lcd_width = SCREEN_HEIGHT;