diff options
Diffstat (limited to 'firmware/target/arm/sandisk/sansa-c200/lcd-c200.c')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-c200/lcd-c200.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c b/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c index fc936b1287..9e7c81e20d 100644 --- a/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c +++ b/firmware/target/arm/sandisk/sansa-c200/lcd-c200.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | /* Display status */ | 27 | /* Display status */ |
28 | static unsigned lcd_yuv_options SHAREDBSS_ATTR = 0; | 28 | static unsigned lcd_yuv_options SHAREDBSS_ATTR = 0; |
29 | static bool is_lcd_enabled = true; | ||
29 | 30 | ||
30 | /* LCD command set for Samsung S6B33B2 */ | 31 | /* LCD command set for Samsung S6B33B2 */ |
31 | 32 | ||
@@ -189,6 +190,29 @@ void lcd_set_invert_display(bool yesno) | |||
189 | (void)yesno; | 190 | (void)yesno; |
190 | } | 191 | } |
191 | 192 | ||
193 | void lcd_enable(bool yesno) | ||
194 | { | ||
195 | if (yesno == is_lcd_enabled) | ||
196 | return; | ||
197 | |||
198 | if (yesno) | ||
199 | { | ||
200 | lcd_send_command(R_STANDBY_OFF); | ||
201 | lcd_send_command(R_DISPLAY_ON); | ||
202 | } | ||
203 | else | ||
204 | { | ||
205 | lcd_send_command(R_STANDBY_ON); | ||
206 | } | ||
207 | is_lcd_enabled = yesno; | ||
208 | } | ||
209 | |||
210 | bool lcd_enabled(void) | ||
211 | { | ||
212 | return is_lcd_enabled; | ||
213 | } | ||
214 | |||
215 | |||
192 | /* turn the display upside down (call lcd_update() afterwards) */ | 216 | /* turn the display upside down (call lcd_update() afterwards) */ |
193 | void lcd_set_flip(bool yesno) | 217 | void lcd_set_flip(bool yesno) |
194 | { | 218 | { |