diff --git a/firmware/export/config/sansac200.h b/firmware/export/config/sansac200.h index f01c664533..5905b6a3f9 100644 --- a/firmware/export/config/sansac200.h +++ b/firmware/export/config/sansac200.h @@ -65,7 +65,7 @@ #define HAVE_LCD_FLIP /* define this if you can invert the colours on your LCD */ -/* TODO: #define HAVE_LCD_INVERT */ +#define HAVE_LCD_INVERT /* Define this if your LCD can set contrast */ #define HAVE_LCD_CONTRAST diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h index ff68e971a1..1c5008c64b 100644 --- a/firmware/export/config/sansac200v2.h +++ b/firmware/export/config/sansac200v2.h @@ -65,7 +65,7 @@ #define HAVE_LCD_FLIP /* define this if you can invert the colours on your LCD */ -/* TODO: #define HAVE_LCD_INVERT */ +#define HAVE_LCD_INVERT /* Define this if your LCD can set contrast */ #define HAVE_LCD_CONTRAST diff --git a/firmware/target/arm/lcd-c200_c200v2.c b/firmware/target/arm/lcd-c200_c200v2.c index e713214f6f..062ed08d62 100644 --- a/firmware/target/arm/lcd-c200_c200v2.c +++ b/firmware/target/arm/lcd-c200_c200v2.c @@ -262,8 +262,11 @@ void lcd_set_contrast(int val) void lcd_set_invert_display(bool yesno) { - /* TODO: Implement lcd_set_invert_display() */ +#ifdef HAVE_LCD_INVERT + lcd_send_command(R_SPEC_DISPLAY_PATTERN, yesno ? 1 : 0); +#else (void)yesno; +#endif } #if defined(HAVE_LCD_ENABLE)