Ex 1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
pdstewart
Date:
Thu Sep 22 15:56:57 2016 +0000
Commit message:
Ex 1

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 579045175873 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 22 15:56:57 2016 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);  // use onboard LED #1
+
+int main() {
+    while(1) {          // repeat indefinitely 
+        myled = 1;      // turn on LED #1
+        wait(0.250);    // wait 250ms 
+        myled = 0;      // turn off LED #1
+        wait(0.250);    // wait 250ms 
+    }
+}
diff -r 000000000000 -r 579045175873 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Sep 22 15:56:57 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/abea610beb85
\ No newline at end of file