summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
index 5ad6c887bd..edc1d9810e 100644
--- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
+++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
@@ -31,6 +31,7 @@
31 31
32/*** AS3525 specifics ***/ 32/*** AS3525 specifics ***/
33#include "as3525.h" 33#include "as3525.h"
34#include "ascodec.h"
34 35
35/*** definitions ***/ 36/*** definitions ***/
36 37
@@ -167,11 +168,18 @@ void lcd_enable(bool enable)
167 168
168 if( (display_on = enable) ) /* simple '=' is not a typo ! */ 169 if( (display_on = enable) ) /* simple '=' is not a typo ! */
169 { 170 {
171 /* Enable DC-DC AS3525 for some Clip v1 that need it */
172 ascodec_write(AS3514_DCDC15, 1);
173
170 lcd_write_command(LCD_SET_DISPLAY_ON); 174 lcd_write_command(LCD_SET_DISPLAY_ON);
171 lcd_activation_call_hook(); 175 lcd_activation_call_hook();
172 } 176 }
173 else 177 else {
174 lcd_write_command(LCD_SET_DISPLAY_OFF); 178 lcd_write_command(LCD_SET_DISPLAY_OFF);
179
180 /* Disable DC-DC AS3525 */
181 ascodec_write(AS3514_DCDC15, 0);
182 }
175} 183}
176 184
177bool lcd_active(void) 185bool lcd_active(void)