DigitalOut

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ryood
Date:
Mon Dec 11 10:30:22 2017 +0000
Commit message:
Test PA_4, PA_5

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
diff -r 000000000000 -r 316a15c3ddfc main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 11 10:30:22 2017 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut myled(PA_4);
+DigitalOut myled2(PA_5);
+
+int main() {
+    while(1) {
+        myled = 1; // LED is ON
+        myled2 = 1;
+        wait(0.01); // 200 ms
+        myled = 0; // LED is OFF
+        myled2 = 0;
+        wait(0.01); // 1 sec
+    }
+}
diff -r 000000000000 -r 316a15c3ddfc mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 11 10:30:22 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/2e9cc70d1897
\ No newline at end of file