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
Revision 0:ccfe324ca25b, committed 2014-04-11
- Comitter:
- screamer
- Date:
- Fri Apr 11 10:16:51 2014 +0000
- Child:
- 1:5863255898a3
- Commit message:
- Initial revision using BusOut API
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 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Apr 11 10:16:51 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file