diff options
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c index 9997deb270..6ede0d3f29 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | |||
@@ -502,6 +502,22 @@ void lcd_enable(bool enable) | |||
502 | } | 502 | } |
503 | #endif | 503 | #endif |
504 | 504 | ||
505 | #ifdef HAVE_LCD_INVERT | ||
506 | void lcd_set_invert_display(bool yesno) | ||
507 | { | ||
508 | /* same for both kinds */ | ||
509 | lcd_write_reg(0x61, yesno ? 0 : 1); | ||
510 | } | ||
511 | #endif | ||
512 | |||
513 | #ifdef HAVE_LCD_FLIP | ||
514 | void lcd_set_flip(bool yesno) | ||
515 | { | ||
516 | /* same for both kinds */ | ||
517 | lcd_write_reg(3, yesno ? 0x1000 : 0x1030); | ||
518 | } | ||
519 | #endif | ||
520 | |||
505 | void lcd_update(void) | 521 | void lcd_update(void) |
506 | { | 522 | { |
507 | lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); | 523 | lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); |