forked from len0rd/rockbox
fuze+: implement lcd flip and invert
Change-Id: I1efcd0c6aa5e586b64c1b48d401648c7a933c4d9
This commit is contained in:
parent
38878020d2
commit
d9177c4c65
2 changed files with 18 additions and 0 deletions
|
|
@ -26,6 +26,8 @@
|
||||||
#define HAVE_LCD_BITMAP
|
#define HAVE_LCD_BITMAP
|
||||||
/* define this if you have a colour LCD */
|
/* define this if you have a colour LCD */
|
||||||
#define HAVE_LCD_COLOR
|
#define HAVE_LCD_COLOR
|
||||||
|
#define HAVE_LCD_FLIP
|
||||||
|
#define HAVE_LCD_INVERT
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
#define HAVE_ALBUMART
|
#define HAVE_ALBUMART
|
||||||
|
|
|
||||||
|
|
@ -502,6 +502,22 @@ void lcd_enable(bool enable)
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
void lcd_update(void)
|
||||||
{
|
{
|
||||||
lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);
|
lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue