KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
94:203729061e48
Parent:
93:6fbc516de05e
Child:
95:ef538bd687c0
--- a/RA8875.cpp	Sun Feb 01 18:50:57 2015 +0000
+++ b/RA8875.cpp	Wed Mar 04 23:52:29 2015 +0000
@@ -175,11 +175,18 @@
 {
     RetCode_t ret;
     
-    ret = WriteCommand(0x01, 0x01);   // Apply Display Off, Reset
-    wait_ms(2);                     // no idea if I need to wait, or how long
+    #if 0
+    if (res != (PinName)NC) {
+        res = 0;                            // Active low - assert reset
+        wait_ms(2);                         // must be > 1024 clock periods. (@25 MHz, this is 40.96 usec)
+        res = 1;                            // de-assert reset
+    }
+    #endif
+    ret = WriteCommand(0x01, 0x01);         // Apply Display Off, Reset
+    wait_ms(2);                             // no idea if I need to wait, or how long
     if (ret == noerror) {
-        ret = WriteCommand(0x01, 0x00);   // Display off, Remove reset
-        wait_ms(2);                     // no idea if I need to wait, or how long
+        ret = WriteCommand(0x01, 0x00);     // Display off, Remove reset
+        wait_ms(2);                         // no idea if I need to wait, or how long
     }
     return ret;
 }