mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Commit part 1 of FS#9663 by Thomas Martitz. Enables backlight fading on the Fuze and e200v2. Also removed a bit of dead code that was copied by accident into the fuze and e200v2 config files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19791 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
da367f4bd4
commit
7278163087
4 changed files with 18 additions and 17 deletions
|
|
@ -28,10 +28,7 @@
|
|||
|
||||
void _backlight_set_brightness(int brightness)
|
||||
{
|
||||
if (brightness > 0)
|
||||
_backlight_on();
|
||||
else
|
||||
_backlight_off();
|
||||
ascodec_write(AS3514_DCDC15, brightness);
|
||||
}
|
||||
|
||||
void _backlight_on(void)
|
||||
|
|
@ -42,7 +39,9 @@ void _backlight_on(void)
|
|||
#ifdef HAVE_LCD_ENABLE
|
||||
lcd_enable(true); /* power on lcd + visible display */
|
||||
#endif
|
||||
#ifndef USE_BACKLIGHT_SW_FADING
|
||||
ascodec_write(AS3514_DCDC15, backlight_brightness);
|
||||
#endif
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue