Applied FS #5727 (fix backlight flicker on X5) by Michael Sevakis

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10360 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rani Hod 2006-07-29 13:31:43 +00:00
parent b156bbd609
commit 78f425d174
2 changed files with 5 additions and 1 deletions

View file

@ -31,6 +31,9 @@
#include "font.h"
#include "adc.h"
#include "backlight.h"
#ifdef IAUDIO_X5
#include "backlight-target.h"
#endif
#include "button.h"
#include "panic.h"
#include "power.h"
@ -184,6 +187,7 @@ void main(void)
set_irq_level(0);
lcd_init();
__backlight_on();
font_init();
adc_init();
button_init();

View file

@ -176,5 +176,5 @@ void pcf50606_init(void)
* set_backlight_brightness code.
*/
pcf50606_write(0x35, 0x11); /* Backlight PWM = 512Hz, 8/16, Active */
pcf50606_write(0x38, 0xb0); /* Backlight ON, GPO1INV=1, GPO1ACT=011 */
pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=011 */
}