led blink rate 0.5s

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jw17594
Date:
Thu Jan 18 14:03:01 2018 +0000
Commit message:
LED1 blink (rate:0.5s)

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