diff lcd.c @ 62:bb52e6dad784

The LCD works better when the GPIO clocks are enabled before frobbing them. PWM doesn't work for some reason, just hard on for now.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 09 Apr 2013 00:28:29 +0930
parents be0a1ac64d97
children ff29436c0224
line wrap: on
line diff
--- a/lcd.c	Mon Apr 08 23:11:55 2013 +0930
+++ b/lcd.c	Tue Apr 09 00:28:29 2013 +0930
@@ -131,11 +131,11 @@
     /* Initialise LCD panel */
 
     /* Pull reset pin low */
-    delay(1);
+    delay(10);
     GPIO_ResetBits(GPIOE, GPIO_Pin_1);
-    delay(10);
+    delay(500);
     GPIO_SetBits(GPIOE, GPIO_Pin_1);
-    delay(50);
+    delay(500);
 
     id = lcd_readreg(0x00);
     if (id != 0x9325) {