diff options
author | trsaunders <trsaunders@gmail.com> | 2012-07-22 18:00:59 +0100 |
---|---|---|
committer | trsaunders <trsaunders@gmail.com> | 2012-07-22 18:00:59 +0100 |
commit | b0d3eb7488a6e0ad70c17a660ded98783c92cc3b (patch) | |
tree | d1636d5eef45892be428f68d59cd469d7c705026 | |
parent | cc87941bc7da4b22a9b8edb9f8dc797cacaf07a6 (diff) | |
download | uGFX-b0d3eb7488a6e0ad70c17a660ded98783c92cc3b.tar.gz uGFX-b0d3eb7488a6e0ad70c17a660ded98783c92cc3b.tar.bz2 uGFX-b0d3eb7488a6e0ad70c17a660ded98783c92cc3b.zip |
fix orientations in ssd1289
-rw-r--r-- | drivers/lcd/ssd1289_lld.c | 4 |
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; |