Example for blink led on FRDM KL46Z

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
FBSEletronica
Date:
Tue Jan 31 18:57:24 2017 +0000
Child:
1:7aa6bd33c618
Commit message:
KL46Z example 1 - blink

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	Tue Jan 31 18:57:24 2017 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+DigitalOut led_green(LED1);
+
+
+int main() {
+    
+    while (true) {
+        led_green = 1;
+        wait(0.5);
+        led_green = 0;
+        wait(0.5);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jan 31 18:57:24 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5
\ No newline at end of file