Apply FS#9194 - LCD invert for Sansa c200/c200v2

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26362 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-05-28 19:36:52 +00:00
parent 36c6f3d13f
commit 36b4b39a7e
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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)