aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/Nokia6610GE12/gdisp_lld.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-19 16:33:13 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-19 16:33:13 +1000
commitad416c32b3558b56c8462dbcadfe1c0520479a1f (patch)
tree947dc2810e77942884216f694f74ba6c12feb9f8 /drivers/gdisp/Nokia6610GE12/gdisp_lld.c
parente9895b5d14714683b1a98f8d24028d94e22b4bb5 (diff)
downloaduGFX-ad416c32b3558b56c8462dbcadfe1c0520479a1f.tar.gz
uGFX-ad416c32b3558b56c8462dbcadfe1c0520479a1f.tar.bz2
uGFX-ad416c32b3558b56c8462dbcadfe1c0520479a1f.zip
Small fix to the Nokia6610GE12 driver
Diffstat (limited to 'drivers/gdisp/Nokia6610GE12/gdisp_lld.c')
-rw-r--r--drivers/gdisp/Nokia6610GE12/gdisp_lld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c
index d190c91a..9aa5ac53 100644
--- a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c
+++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c
@@ -106,11 +106,16 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
delayms(20);
acquire_bus(g);
+
write_index(g, SLEEPOUT); // Sleep out
write_reg(g, COLMOD, 0x03); // Color Interface Pixel Format - 0x03 = 12 bits-per-pixel
write_reg(g, MADCTL, 0x00); // Memory access controller
write_reg(g, SETCON, 127*GDISP_INITIAL_CONTRAST/100-64); // Write contrast
delayms(20);
+
+ // Finish Init
+ post_init_board(g);
+
release_bus(g);
/* Turn on the back-light */