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:
- 1:0f68a8a42a12
- Parent:
- 0:717702d0d65e
- Child:
- 2:b21ca9158784
diff -r 717702d0d65e -r 0f68a8a42a12 main.cpp
--- a/main.cpp Sun Jan 19 09:24:06 2020 +0000
+++ b/main.cpp Sun Jan 26 09:37:15 2020 +0000
@@ -5,7 +5,11 @@
int main() {
uint8_t mode, contrast=0, contrastFlag=false;
- int CGcounter, FADEcounter, a=1;
+ int CGcounter, FADEcounter, a=1, i=5;
+// char unchi[] = "unchi";
+ char buf[10] = {};
+ sprintf(buf,"%d", i);
+ const char *u = buf;
while(1) {
switch(mode) {
@@ -17,19 +21,20 @@
break;
case 1: // SWITCH
aqm.setCursor(0, 0);
- aqm.printStr("SWITCH");
+ aqm.printStr("I");
mode++;
wait(1);
break;
case 2: // SCI
- aqm.setCursor(1, 1);
- aqm.printStr("SCI");
+ aqm.setCursor(2, 0);
+ aqm.printStr("LOVE");
mode++;
wait(1);
+
break;
case 3:
- aqm.setCursor(4, 1);
- aqm.printStr("ENCE");
+ aqm.setCursor(3, 1);
+ aqm.printStr(1234);
FADEcounter = 0;
mode++;
wait(1);