diff options
author | ergosys <ergosys@gmail.com> | 2014-12-15 14:00:24 -0800 |
---|---|---|
committer | ergosys <ergosys@gmail.com> | 2014-12-15 14:00:24 -0800 |
commit | 3811a032395911808b023e3723111eedda6b0ec2 (patch) | |
tree | 9bfa8e48d4e29e36db76f97b717c28dd794710da /drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c | |
parent | 555fda21708519de00dd10a213e346d084c50023 (diff) | |
parent | 1707fbb85c2f9179bba1722cbd03311c2d97132b (diff) | |
download | uGFX-3811a032395911808b023e3723111eedda6b0ec2.tar.gz uGFX-3811a032395911808b023e3723111eedda6b0ec2.tar.bz2 uGFX-3811a032395911808b023e3723111eedda6b0ec2.zip |
Merge branch 'master' into ssd1306
Diffstat (limited to 'drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c')
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c b/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c index 08cddf96..36deeb90 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c +++ b/drivers/gdisp/SSD2119/gdisp_lld_SSD2119.c @@ -152,7 +152,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, 0x6830); // ENTRY_MODE_DEFAULT + write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6838); // ENTRY_MODE_DEFAULT gfxSleepMicroseconds(5); // Set analog parameters. @@ -267,7 +267,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g) { #if GDISP_HARDWARE_FILLS && defined(GDISP_USE_DMA) LLDSPEC void gdisp_lld_fill_area(GDisplay* g) { - uint16_t c; + LLDCOLOR_TYPE c; c = gdispColor2Native(g->p.color); acquire_bus(g); @@ -285,7 +285,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g) { LLDSPEC void gdisp_lld_blit_area(GDisplay* g) { pixel_t* buffer; - coord_t ynct; + coord_t ycnt; buffer = (pixel_t*)g->p.ptr + g->p.x1 + g->p.y1 * g->p.x2; @@ -355,8 +355,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 = 0 */ - write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6830); + /* ID = 11 AM = 1 */ + write_reg(g, SSD2119_REG_ENTRY_MODE, 0x6838); release_bus(g); g->g.Height = GDISP_SCREEN_HEIGHT; g->g.Width = GDISP_SCREEN_WIDTH; |