SH 6 signal indicator

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
open4416
Date:
Tue Aug 23 14:22:06 2016 +0000
Commit message:
test

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 f1a9ec5fba60 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Aug 23 14:22:06 2016 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+
+DigitalInOut BK(D8, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut B(D9, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut W(D10, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut Y(D11, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut G(D12, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut R(D13, PIN_OUTPUT, OpenDrain, 1);
+
+int main()
+{
+
+    while(1) {
+
+        BK = 1; // LED is ON
+        B = 1; // LED is ON
+        W = 1; // LED is ON
+        Y = 1; // LED is ON
+        G = 1; // LED is ON
+        R = 1; // LED is ON
+        wait(5.0); // 1 sec
+
+        BK = 0; // LED is ON
+        B = 0; // LED is ON
+        W = 0; // LED is ON
+        Y = 0; // LED is ON
+        G = 0; // LED is ON
+        R = 0; // LED is ON
+        wait(5.0); // 1 sec
+
+    }
+}
diff -r 000000000000 -r f1a9ec5fba60 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Aug 23 14:22:06 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974
\ No newline at end of file