1
0
Fork 0
forked from len0rd/rockbox

ClipZip LCD Corruption Backlight fix

User reported LCD screen corruption via forum in 3.14 and 3.15
turning backlight off and back on seems to fix the issue
http://forums.rockbox.org/index.php/topic,53192.0.html

Change-Id: Id0b34d2f9b77e79ab0ecabace331f0b203184724
This commit is contained in:
William Wilgus 2020-02-28 09:36:54 -06:00
parent dc7342c164
commit 4382d3f5ed

View file

@ -29,13 +29,16 @@
bool backlight_hw_init() bool backlight_hw_init()
{ {
/* GPIO B1 controls backlight */
GPIOB_DIR |= (1 << 1);
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
GPIOB_PIN(1) = (1 << 1);
return true; return true;
} }
void backlight_hw_on(void) void backlight_hw_on(void)
{ {
/* GPIO B1 controls backlight */
GPIOB_DIR |= (1 << 1);
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
GPIOB_PIN(1) = (1 << 1); GPIOB_PIN(1) = (1 << 1);
#ifdef HAVE_LCD_ENABLE #ifdef HAVE_LCD_ENABLE
@ -56,4 +59,3 @@ void backlight_hw_brightness(int brightness)
{ {
oled_brightness(brightness); oled_brightness(brightness);
} }