e-paper whereabouts board program

Dependencies:   SDFileSystem mbed

Revision:
2:9150515ecd68
Parent:
1:cb28911c7ba5
--- a/main.cpp	Tue May 23 05:06:14 2017 +0000
+++ b/main.cpp	Tue May 23 22:40:04 2017 +0000
@@ -21,6 +21,9 @@
     
     initPort();   //Initialize Port
     
+    //turn on EDP
+    powerOn();
+
     FILE *fp;
     char filePath[32] = "";
     int fileNum = 0;
@@ -39,9 +42,6 @@
             fileNum = 4;
     }
 
-    //turn on EDP
-    powerOn();
-    
     //open file
     sprintf( filePath , "/sd/%d.bmp" , fileNum);        
     fp = fopen(filePath, "r");
@@ -49,7 +49,7 @@
     /* -------------------------------------- */
     /* Please select display mode            */
     /* from mode1 to mode3 for your EDP.     */
-    /* Please comment out any not need mode    */
+    /* Please comment out any not need modes  */
     /* -------------------------------------- */
 
     //DisplayMode1 fill Black and draw white