summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
index 5021fedb06..c07a85de50 100644
--- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
+++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
@@ -82,6 +82,8 @@ static void ams3525_dbop_init(void)
82 82
83void lcd_write_command(int byte) 83void lcd_write_command(int byte)
84{ 84{
85 volatile int i = 0;
86 while(i<1) i++;
85 /* unset D/C# (data or command) */ 87 /* unset D/C# (data or command) */
86 GPIOA_PIN(5) = 0; 88 GPIOA_PIN(5) = 0;
87 89
@@ -96,6 +98,8 @@ void lcd_write_command(int byte)
96 98
97void lcd_write_data(const fb_data* p_bytes, int count) 99void lcd_write_data(const fb_data* p_bytes, int count)
98{ 100{
101 volatile int i = 0;
102 while(i<1) i++;
99 /* set D/C# (data or command) */ 103 /* set D/C# (data or command) */
100 GPIOA_PIN(5) = (1<<5); 104 GPIOA_PIN(5) = (1<<5);
101 105