x5: Needed a couple tweaks to the contrast fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11077 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8043fcbf9
commit
f80de70df3
1 changed files with 5 additions and 1 deletions
|
@ -121,6 +121,9 @@ void lcd_set_contrast(int val)
|
|||
|
||||
lcd_contrast = val << 8;
|
||||
|
||||
if (!power_on)
|
||||
return;
|
||||
|
||||
/* VCOMG=1, VDV4-0=xxxxx, VCM4-0=11000 */
|
||||
lcd_write_reg(R_POWER_CONTROL5, 0x2018 | lcd_contrast);
|
||||
}
|
||||
|
@ -372,8 +375,9 @@ void lcd_init_device(void)
|
|||
/* Power and display already ON */
|
||||
power_on = true;
|
||||
display_on = true;
|
||||
lcd_roll(0);
|
||||
lcd_set_flip(false);
|
||||
lcd_roll(0);
|
||||
lcd_set_invert_display(false);
|
||||
lcd_set_contrast(DEFAULT_CONTRAST_SETTING);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue