diff options
author | Joel Bodenmann <joel@unormal.org> | 2015-02-04 14:16:07 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2015-02-04 14:16:07 +0100 |
commit | d8e46a098d1f7a0f1cf2eb3a45aca111fae037f8 (patch) | |
tree | 0b9ac5a2e5e94c1e8cd8c2c86e69e6870998b455 /drivers/gdisp/SSD2119 | |
parent | 32ab371e4eda78636cfd356d4784f7c0bfde764a (diff) | |
download | uGFX-d8e46a098d1f7a0f1cf2eb3a45aca111fae037f8.tar.gz uGFX-d8e46a098d1f7a0f1cf2eb3a45aca111fae037f8.tar.bz2 uGFX-d8e46a098d1f7a0f1cf2eb3a45aca111fae037f8.zip |
Fixing SSD2119 orientation bug
Diffstat (limited to 'drivers/gdisp/SSD2119')
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c b/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c index e32e2b12..29afaab5 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c +++ b/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c @@ -158,7 +158,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g) { gfxSleepMicroseconds(5); // Configure pixel color format and MCU interface parameters. - write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6838); // ENTRY_MODE_DEFAULT + write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6830); // ENTRY_MODE_DEFAULT gfxSleepMicroseconds(5); // Set analog parameters. @@ -365,8 +365,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g) { switch((orientation_t)g->p.ptr) { case GDISP_ROTATE_0: acquire_bus(g); - /* ID = 11 AM = 1 */ - write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6838); + /* ID = 11 AM = 0 */ + write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6830); release_bus(g); g->g.Height = GDISP_SCREEN_HEIGHT; g->g.Width = GDISP_SCREEN_WIDTH; |