diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-02-05 00:19:11 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-02-05 00:19:11 +1000 |
commit | 288a8afb9512b5f4c09946ba8c200a558fabd750 (patch) | |
tree | 844ab5b0d79f4d6498466b8f96ffdcb5e82827a4 /drivers/gdisp/PCD8544 | |
parent | c9f0c1748d9433bd0bc96e8cd656c4e2f7982f45 (diff) | |
download | uGFX-288a8afb9512b5f4c09946ba8c200a558fabd750.tar.gz uGFX-288a8afb9512b5f4c09946ba8c200a558fabd750.tar.bz2 uGFX-288a8afb9512b5f4c09946ba8c200a558fabd750.zip |
Driver bugfix
Diffstat (limited to 'drivers/gdisp/PCD8544')
-rw-r--r-- | drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c b/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c index 531a5a42..67584576 100644 --- a/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c +++ b/drivers/gdisp/PCD8544/gdisp_lld_PCD8544.c @@ -73,10 +73,6 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { write_cmd(g, PCD8544_SET_VOP | (0x40)); write_cmd(g, PCD8544_SET_FUNC); write_cmd(g, PCD8544_SET_DISPLAY | PCD8544_DISPLAY_MODE_NORMAL); - write_cmd(g, PCD8544_SET_X); // X = 0 - write_cmd(g, PCD8544_SET_Y); // Y = 0 - - write_data(g, 0x00, GDISP_SCREEN_BYTES); // Finish Init post_init_board(g); @@ -146,7 +142,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { y = g->p.y; #endif - if (gdispColor2Native(g->p.color) != Black) { + if (g->p.color != Black) { RAM(g)[xyaddr(x, y)] |= xybit(y); } else { RAM(g)[xyaddr(x, y)] &= ~xybit(y); |