forked from len0rd/rockbox
HD200 - fix lcd power save command (not used currently)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26684 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0cc507214a
commit
12fa759aad
1 changed files with 8 additions and 2 deletions
|
@ -63,11 +63,17 @@ int lcd_default_contrast(void)
|
||||||
|
|
||||||
void lcd_powersave(bool on)
|
void lcd_powersave(bool on)
|
||||||
{
|
{
|
||||||
/* What is the point of having else construct here? */
|
|
||||||
if (on)
|
if (on)
|
||||||
|
/* enter power saving mode
|
||||||
|
* this turns off lcd without controller reset
|
||||||
|
* probably ~1mA saving
|
||||||
|
*/
|
||||||
lcd_write_command(LCD_SET_POWER_SAVE | 1);
|
lcd_write_command(LCD_SET_POWER_SAVE | 1);
|
||||||
else
|
else
|
||||||
lcd_write_command(LCD_SET_POWER_SAVE | 1);
|
/* leave lcd power saving mode
|
||||||
|
* no need to reset and initialize controller
|
||||||
|
*/
|
||||||
|
lcd_write_command(LCD_SET_POWER_SAVE | 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_set_contrast(int val)
|
void lcd_set_contrast(int val)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue