summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config/sansafuzeplus.h2
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h
index 7c40600fc8..5f325cf048 100644
--- a/firmware/export/config/sansafuzeplus.h
+++ b/firmware/export/config/sansafuzeplus.h
@@ -26,6 +26,8 @@
26#define HAVE_LCD_BITMAP 26#define HAVE_LCD_BITMAP
27/* define this if you have a colour LCD */ 27/* define this if you have a colour LCD */
28#define HAVE_LCD_COLOR 28#define HAVE_LCD_COLOR
29#define HAVE_LCD_FLIP
30#define HAVE_LCD_INVERT
29 31
30#ifndef BOOTLOADER 32#ifndef BOOTLOADER
31#define HAVE_ALBUMART 33#define HAVE_ALBUMART
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
506void 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
514void lcd_set_flip(bool yesno)
515{
516 /* same for both kinds */
517 lcd_write_reg(3, yesno ? 0x1000 : 0x1030);
518}
519#endif
520
505void lcd_update(void) 521void 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);