Ryu Anzawa / Mbed OS AQM0802A

Dependencies:   aqm0802

Revision:
2:b21ca9158784
Parent:
1:0f68a8a42a12
diff -r 0f68a8a42a12 -r b21ca9158784 main.cpp
--- a/main.cpp	Sun Jan 26 09:37:15 2020 +0000
+++ b/main.cpp	Sat Dec 12 13:51:10 2020 +0000
@@ -15,21 +15,22 @@
         switch(mode) {
         case 0:  // init
             aqm.cmd(0x01);
-            wait_ms(50);
+            thread_sleep_for(50);
             mode++;
-            wait(1);
+//            wait(1);
+            thread_sleep_for(1000.0);
             break;
         case 1:  // SWITCH
             aqm.setCursor(0, 0);
             aqm.printStr("I");
             mode++;
-            wait(1);
+            thread_sleep_for(1000);
             break;
         case 2:  // SCI
             aqm.setCursor(2, 0);
-            aqm.printStr("LOVE");
+            aqm.printStr("LIKE");
             mode++;
-            wait(1);
+            thread_sleep_for(1000);
             
             break;
         case 3:
@@ -37,7 +38,7 @@
             aqm.printStr(1234);
             FADEcounter = 0;
             mode++;
-            wait(1);
+            thread_sleep_for(1000);
             mode=0;
             break;
             /*
@@ -56,6 +57,7 @@
             break;
             */
         }
-        wait(0.05);
+//        wait(0.05);
+        thread_sleep_for(50);
     }
 }