The default Hello World program, used when you create a new program

Dependencies:   mbed-dev

Fork of HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
hankzhang
Date:
Thu Jul 26 10:14:43 2018 +0000
Parent:
1:03c191369089
Commit message:
First commint

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-dev.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
diff -r 03c191369089 -r abda46270aa2 main.cpp
--- a/main.cpp	Sun Jan 01 20:57:57 2012 +0000
+++ b/main.cpp	Thu Jul 26 10:14:43 2018 +0000
@@ -1,8 +1,14 @@
 #include "mbed.h"
 
 DigitalOut myled(LED1);
+ 
+Serial pc(USBTX, USBRX);
+ 
+
 
 int main() {
+    pc.baud(115200);
+    pc.printf("Hello World\n");
     while(1) {
         myled = 1;
         wait(0.2);
diff -r 03c191369089 -r abda46270aa2 mbed-dev.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-dev.lib	Thu Jul 26 10:14:43 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-dev/#95d6b41a828b
diff -r 03c191369089 -r abda46270aa2 mbed.bld
--- a/mbed.bld	Sun Jan 01 20:57:57 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/078e4b97a13e