diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config/samsungyh920.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/samsung/yh920/lcd-yh920.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/export/config/samsungyh920.h b/firmware/export/config/samsungyh920.h index 58a8c835e3..4837942eed 100644 --- a/firmware/export/config/samsungyh920.h +++ b/firmware/export/config/samsungyh920.h @@ -64,7 +64,7 @@ #define DEFAULT_CONTRAST_SETTING 61 /* Match boot contrast */ /* define this if you can flip your LCD */ -/* todo #define HAVE_LCD_FLIP */ +#define HAVE_LCD_FLIP /* define this if you can invert the colours on your LCD */ #define HAVE_LCD_INVERT diff --git a/firmware/target/arm/samsung/yh920/lcd-yh920.c b/firmware/target/arm/samsung/yh920/lcd-yh920.c index 5563c13f53..06aa3d718d 100644 --- a/firmware/target/arm/samsung/yh920/lcd-yh920.c +++ b/firmware/target/arm/samsung/yh920/lcd-yh920.c @@ -106,17 +106,17 @@ void lcd_set_invert_display(bool yesno) /* turn the display upside down (call lcd_update() afterwards) */ void lcd_set_flip(bool yesno) { - if (yesno) + if (yesno) { lcd_send_cmd(LCD_CNTL_COLUMN_ADDRESS_DIR | 1); - lcd_send_cmd(LCD_CNTL_COMMON_OUTPUT_STATUS | 0); - lcd_write_reg_ex(LCD_CNTL_DUTY_SET, 0x20, 0); + lcd_send_cmd(LCD_CNTL_COMMON_OUTPUT_STATUS | 1); + lcd_write_reg_ex(LCD_CNTL_DUTY_SET, 0x1f, 1); } else { lcd_send_cmd(LCD_CNTL_COLUMN_ADDRESS_DIR | 0); - lcd_send_cmd(LCD_CNTL_COMMON_OUTPUT_STATUS | 1); - lcd_write_reg_ex(LCD_CNTL_DUTY_SET, 0x20, 1); + lcd_send_cmd(LCD_CNTL_COMMON_OUTPUT_STATUS | 0); + lcd_write_reg_ex(LCD_CNTL_DUTY_SET, 0x1f, 0); } } |