blink D3 LED on UDK2 board

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mfiore
Date:
Fri Sep 25 15:47:01 2015 +0000
Commit message:
initial commit

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	Fri Sep 25 15:47:01 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut led(LED1);
+Ticker tick;
+
+void tock() {
+    led = !led;
+}
+
+int main() {
+    // call the tock() function every 0.5 seconds
+    tick.attach(&tock, 0.5);
+    
+    while (true);
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 25 15:47:01 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file