mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
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:
parent
36c6f3d13f
commit
36b4b39a7e
3 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue