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:25a16c59dd08
- Parent:
- 0:8ce4db94b0f1
- Child:
- 2:9ec8d00db1a9
--- a/main.cpp Thu Jul 02 08:43:07 2020 +0000
+++ b/main.cpp Fri Oct 30 05:11:18 2020 +0000
@@ -7,13 +7,21 @@
int i1=7;
float i2=7.5;
char i3='H';
+ char c;
+
pc.printf("Hello World!\r\n");
pc.printf("i1=%d\r\n",i1);
pc.printf("i2=%f\r\n",i2);
pc.printf("i3=%c\r\n",i3);
pc.putc(i3);
+ pc.printf("\r\n");
+
for(i1=0;i1<10;i1++){
- printf("i1=%d\r\n",i1);
- pc.putc(pc.getc());
+ pc.printf("i1=%d -- enter any key --> ",i1);
+ c = pc.getc();
+ pc.putc(c);
+ pc.printf("\r\n");
}
+
+ pc.printf("finish!!\r\n");
}
\ No newline at end of file