diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-10-21 14:27:29 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-10-21 14:27:29 +0200 |
commit | f285a24a9030e0119739330f4246b4141fa3ba5e (patch) | |
tree | b0a47e94f5f2b6baef3afedecc363547c898c108 | |
parent | 459fbf6781bca48471ea8dc1cfbbd2a0700ee2e1 (diff) | |
download | uGFX-f285a24a9030e0119739330f4246b4141fa3ba5e.tar.gz uGFX-f285a24a9030e0119739330f4246b4141fa3ba5e.tar.bz2 uGFX-f285a24a9030e0119739330f4246b4141fa3ba5e.zip |
SSD1289 fixes
-rw-r--r-- | drivers/gdisp/SSD1289/gdisp_lld.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index 698d3cfc..510f1560 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -302,7 +302,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { case GDISP_ROTATE_90:
acquire_bus(g);
/* ID = 01 AM = 1 */
- write_reg(0x11, 0x6058);
+ write_reg(g, 0x11, 0x6058);
release_bus(g);
g->g.Height = GDISP_SCREEN_WIDTH;
g->g.Width = GDISP_SCREEN_HEIGHT;
@@ -310,7 +310,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { case GDISP_ROTATE_180:
acquire_bus(g);
/* ID = 00 AM = 0 */
- write_reg(0x11, 0x6040);
+ write_reg(g, 0x11, 0x6040);
release_bus(g);
g->g.Height = GDISP_SCREEN_HEIGHT;
g->g.Width = GDISP_SCREEN_WIDTH;
@@ -326,7 +326,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { default:
return;
}
- g->g.Orientation = (orientation_t)value;
+ g->g.Orientation = (orientation_t)g->p.ptr;
return;
case GDISP_CONTROL_BACKLIGHT:
|