summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
index a794589647..f1e1c24b85 100644
--- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
+++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
@@ -123,7 +123,7 @@ static bool display_on; /* used by lcd_enable */
123 123
124int lcd_default_contrast(void) 124int lcd_default_contrast(void)
125{ 125{
126 return 0x1f; 126 return DEFAULT_CONTRAST_SETTING;
127} 127}
128 128
129void lcd_set_contrast(int val) 129void lcd_set_contrast(int val)
@@ -143,8 +143,16 @@ void lcd_set_invert_display(bool yesno)
143/* turn the display upside down (call lcd_update() afterwards) */ 143/* turn the display upside down (call lcd_update() afterwards) */
144void lcd_set_flip(bool yesno) 144void lcd_set_flip(bool yesno)
145{ 145{
146 (void)yesno; 146 if (yesno)
147 /* TODO */ 147 {
148 lcd_write_command(LCD_SET_SEGMENT_REMAP);
149 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION);
150 }
151 else
152 {
153 lcd_write_command(LCD_SET_SEGMENT_REMAP_INV);
154 lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION_INV);
155 }
148} 156}
149 157
150void lcd_enable(bool enable) 158void lcd_enable(bool enable)