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.
Dependencies: mbed
main.cpp
00001 #include"mbed.h" 00002 00003 RawSerial pc(USBTX,USBRX,9600); 00004 00005 int main(){ 00006 int i1=7; 00007 float i2=7.5; 00008 char i3='H'; 00009 char c; 00010 00011 pc.printf("Hello World!\r\n"); 00012 pc.printf("i1=%d\r\n",i1); 00013 pc.printf("i2=%f\r\n",i2); 00014 pc.printf("i3=%c\r\n",i3); 00015 pc.putc(i3); 00016 pc.printf("\r\n"); 00017 00018 for(int j=0; j<10; j++){ 00019 pc.printf("j=%d -- enter any key --> ",j); 00020 c = pc.getc(); 00021 pc.putc(c); 00022 pc.printf("\r\n"); 00023 } 00024 00025 pc.printf("finish!!\r\n"); 00026 }
Generated on Mon Nov 7 2022 12:37:21 by
1.7.2