Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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);
}
}