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

main.cpp

Committer:
screamer
Date:
2014-05-07
Revision:
1:5863255898a3
Parent:
0:ccfe324ca25b
Child:
3:1cae0dd371ff

File content as of revision 1:5863255898a3:

#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);
    }
}