example program for the dot

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mfiore
Date:
Tue Jun 02 15:40:45 2015 +0000
Commit message:
first commit of example program

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	Tue Jun 02 15:40:45 2015 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+int main() {
+    DigitalOut led(LED1);
+    Serial ser(USBTX, USBRX);
+    
+    while(true) {
+        led = !led;
+        ser.printf("hello world!");
+        wait(2);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jun 02 15:40:45 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cbbeb26dbd92
\ No newline at end of file