RemoLab Blinky Experiment

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
EduRemo
Date:
Tue Feb 02 12:35:04 2016 +0000
Commit message:
Initial

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 ec8e913ff5bc main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Feb 02 12:35:04 2016 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1); //red led
+
+int main() {
+    while(1) {
+        myled = 1;  //make led OFF becuase led is active low
+        wait(0.5);  // wait for half a second
+        myled = 0;  // makes led ON
+        wait(0.5);
+    }
+}
diff -r 000000000000 -r ec8e913ff5bc mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Feb 02 12:35:04 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file