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 @@ #define HAVE_LCD_BITMAP /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR +#define HAVE_LCD_FLIP +#define HAVE_LCD_INVERT #ifndef BOOTLOADER #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) } #endif +#ifdef HAVE_LCD_INVERT +void lcd_set_invert_display(bool yesno) +{ + /* same for both kinds */ + lcd_write_reg(0x61, yesno ? 0 : 1); +} +#endif + +#ifdef HAVE_LCD_FLIP +void lcd_set_flip(bool yesno) +{ + /* same for both kinds */ + lcd_write_reg(3, yesno ? 0x1000 : 0x1030); +} +#endif + void lcd_update(void) { lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);