lampjes knipperen

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
luukblaauw
Date:
Mon Sep 12 09:59:48 2016 +0000
Commit message:
lololololololololol

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	Mon Sep 12 09:59:48 2016 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut led1(LED_BLUE);
+DigitalOut led2(LED_GREEN);
+DigitalOut led(LED_RED);
+
+int main()
+{
+    while (true) {
+        led = !led; // toggle led
+        led1 = !led;
+        led2 = !led1;
+        wait(0.2f);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Sep 12 09:59:48 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/2e9cc70d1897
\ No newline at end of file