電子ペーパーで所在を表示しておくプレートのプログラムです

Dependencies:   SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
kohacraft
Date:
Tue May 23 22:37:09 2017 +0000
Parent:
1:bd1c3875fb64
Commit message:
????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue May 23 01:00:24 2017 +0000
+++ b/main.cpp	Tue May 23 22:37:09 2017 +0000
@@ -20,6 +20,9 @@
 int main() {
     
     initPort();   //IOの初期化
+
+    //電子ペーパーの電源を入れる
+    powerOn();
     
     FILE *fp;
     char filePath[32] = "";
@@ -38,9 +41,6 @@
         if( key4 == 1 )
             fileNum = 4;
     }
-
-    //電子ペーパーの電源を入れる
-    powerOn();
     
     //ファイルのオープン
     sprintf( filePath , "/sd/%d.bmp" , fileNum);