BITS IOT PGP 2017-18 / Mbed 2 deprecated check

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
rakeshravula
Date:
Sun Jun 17 08:22:58 2018 +0000
Child:
1:76207e762bb4
Commit message:
for printing to UART

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	Sun Jun 17 08:22:58 2018 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX);
+
+DigitalOut led1(LED1);
+
+int main() {
+    while (true) {
+        led1 = !led1;
+
+        // Print something over the serial connection
+        pc.printf("Blink! LED is now %d\r\n", led1.read());
+
+        wait(0.5);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jun 17 08:22:58 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file