aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrsaunders <trsaunders@gmail.com>2012-07-22 18:00:59 +0100
committertrsaunders <trsaunders@gmail.com>2012-07-22 18:00:59 +0100
commitb0d3eb7488a6e0ad70c17a660ded98783c92cc3b (patch)
treed1636d5eef45892be428f68d59cd469d7c705026
parentcc87941bc7da4b22a9b8edb9f8dc797cacaf07a6 (diff)
downloaduGFX-b0d3eb7488a6e0ad70c17a660ded98783c92cc3b.tar.gz
uGFX-b0d3eb7488a6e0ad70c17a660ded98783c92cc3b.tar.bz2
uGFX-b0d3eb7488a6e0ad70c17a660ded98783c92cc3b.zip
fix orientations in ssd1289
-rw-r--r--drivers/lcd/ssd1289_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c
index 75ebe732..e3a26a43 100644
--- a/drivers/lcd/ssd1289_lld.c
+++ b/drivers/lcd/ssd1289_lld.c
@@ -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;