Merge branch 'GDISPStreaming' of bitbucket.org:Tectu/ugfx into GDISPStreaming

ugfx_release_2.6
Joel Bodenmann 2013-10-26 17:51:45 +02:00
commit 45eb9b0c79
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
case GDISP_CONTROL_CONTRAST:
if ((unsigned)g->p.ptr > 100) g->p.ptr = (void *)100;
acquire_bus(g);
write_reg(g, CONTRAST,(unsigned)128*g->p.ptr/101-64);
write_reg(g, SETCON,(unsigned)128*(unsigned)g->p.ptr/101-64);
release_bus(g);
g->g.Contrast = (unsigned)g->p.ptr;
return;