lackjin beak / Mbed 2 deprecated Nucleo_uart

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lackjin
Date:
Thu Apr 13 05:03:42 2017 +0000
Child:
1:1855bec2cc91
Commit message:
17-0413 14:03;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 13 05:03:42 2017 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+DigitalOut myled(LED1);
+
+int main()
+{
+    int i = 1;
+    pc.printf("Hello World !\n\r");
+    while(1) {
+        wait(1);
+        pc.printf("This program runs since %d seconds.\n\r", i++);
+        pc.printf("--------------- \n\r");
+        
+        myled = !myled;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 13 05:03:42 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/97feb9bacc10
\ No newline at end of file