BMT M9 Groep01 / Mbed 2 deprecated M9mbed_blinky

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
s1340735
Date:
Thu Oct 30 14:38:59 2014 +0000
Child:
1:359e2525c524
Commit message:
lichtje

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	Thu Oct 30 14:38:59 2014 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+
+DigitalOut rood(PTD1);
+DigitalOut groen(PTA12);
+DigitalOut blauw(PTD4);
+DigitalOut wit(PTA13);
+
+int main()
+{
+    while(1) {
+        rood = 1;
+        wait(1);
+        groen = 1;
+        wait(1);
+        blauw = 1;
+        wait(1);
+        wit = 1;
+        wait(1);
+        wit=0;
+        wait(1);
+        blauw=0;
+        wait(1);
+        groen=0;
+        wait(1);
+        rood=0;
+        wait(1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 30 14:38:59 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file