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
- Committer:
- RyusukeIwata
- Date:
- 2022-11-07
- Revision:
- 3:c35610b8c2a2
- Parent:
- 2:9ec8d00db1a9
- Child:
- 4:a7a4d56f8809
File content as of revision 3:c35610b8c2a2:
#include"mbed.h" RawSerial pc(USBTX,USBRX); int main(){ pc.baud(9600); 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(int j=0; j<10; j++){ pc.printf("j=%d -- enter any key --> ",j); c = pc.getc(); pc.putc(c); pc.printf("\r\n"); } pc.printf("finish!!\r\n"); }