diff options
author | pashamray <pashamray@gmail.com> | 2014-06-13 12:05:41 +0000 |
---|---|---|
committer | pashamray <pashamray@gmail.com> | 2014-06-13 12:05:41 +0000 |
commit | a38fd71311c212e06d6b4435737833784fa868ed (patch) | |
tree | 23fdd7d89e058bb04a5f700694c6fdd68171c2bd /drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c | |
parent | f3870ce44130516ee7a898685c53ddf48d47d8cd (diff) | |
download | uGFX-a38fd71311c212e06d6b4435737833784fa868ed.tar.gz uGFX-a38fd71311c212e06d6b4435737833784fa868ed.tar.bz2 uGFX-a38fd71311c212e06d6b4435737833784fa868ed.zip |
gdisp_lld_PCF8812.c отредактирован онлайн на Bitbucket
Diffstat (limited to 'drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c')
-rw-r--r-- | drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c b/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c index 083f6d50..b0475fae 100644 --- a/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c +++ b/drivers/gdisp/PCF8812/gdisp_lld_PCF8812.c @@ -115,8 +115,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { unsigned int i; acquire_bus(g); - for (i = 0; i < (GDISP_SCREEN_WIDTH * GDISP_SCREEN_HEIGHT / 8); i += GDISP_SCREEN_WIDTH) { - write_data(g, RAM(g) + i, GDISP_SCREEN_WIDTH); + for (i = 0; i < 9; ++i) { + write_data(g, RAM(g) + (i * GDISP_SCREEN_WIDTH), GDISP_SCREEN_WIDTH); } release_bus(g); } |