Driver Library for our displays

Dependents:   dm_bubbles dm_calc dm_paint dm_sdcard_with_adapter ... more

Revision:
6:fde03297017b
Parent:
4:92d019216e28
--- a/dm_platform.h	Thu May 22 09:35:12 2014 +0000
+++ b/dm_platform.h	Fri May 23 08:10:09 2014 +0000
@@ -70,7 +70,11 @@
   // delay should ideally be configurable per platform but for now it will have
   // to be ok to lower the frequency to 500KHz  
   #if defined(__LPC407x_8x_177x_8x_H__)
-    #define slow_pulse_delay()  wait_us(1)
+    //#define slow_pulse_delay()  wait_us(1)
+    #define slow_pulse_delay() do {\
+      volatile unsigned _xyz = 10; \
+      for (; _xyz > 0; _xyz--); \
+    } while(0)
   #else
     #define slow_pulse_delay()
   #endif