Example program using the mbed 23 LEDs prototype shield. The shield has 23 LEDs attached to D0-D15, A0-A5, plus one for power indication.

Dependencies:   mbed

mbed 23 LEDs shield

Revision:
0:ccfe324ca25b
Child:
1:5863255898a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 11 10:16:51 2014 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+BusOut bus1(D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15);
+BusOut bus2(A5, A4, A3, A2, A1, A0);
+int i;
+ 
+int main()
+{
+    for (i=0; i<65535; i++) {
+        bus1 = i;
+        bus2 = i;
+        wait(0.001);
+    }
+}
\ No newline at end of file