test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
chauvoluuhuong
Date:
Mon Aug 07 09:25:04 2017 +0000
Commit message:
stm32f407;

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
diff -r 000000000000 -r 2e29df975b6f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Aug 07 09:25:04 2017 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+// define the Serial object
+Serial pc(USBTX, USBRX);
+DigitalOut led1(PD_14);
+
+int main() {
+    pc.baud(115200);
+    while (true) {
+        led1 = !led1;
+
+        // Print something over the serial connection
+        pc.printf("Blink! LED is now %d\r\n", led1.read());
+
+        wait(1);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 2e29df975b6f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Aug 07 09:25:04 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/fd96258d940d
\ No newline at end of file