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
Fork of Serial_HelloWorld_Mbed by
Diff: main.cpp
- Revision:
- 5:4e99dfae8dca
- Parent:
- 4:3974a6c7b088
- Child:
- 6:3689cb2a18f4
--- a/main.cpp Tue Aug 04 23:22:53 2015 +0000
+++ b/main.cpp Thu Jan 07 00:02:17 2016 +0000
@@ -8,12 +8,12 @@
Serial pc(USBTX,USBRX);
int main() {
- pc.baud(9600); // set baudrate
+ pc.baud(115200); // set baudrate
pc.printf("Hello World!\n"); // string output
- while(1) {
- pc.putc(pc.getc()); // typing characters
+ while(1) {
+ pc.putc(pc.getc()+1); // typing characters
}
}
