Wim Huiskamp
/
mbed_SDA5708
Test code for SDA5708 LED matrix display
Revision 1:bffa08157551, committed 2014-09-30
- Comitter:
- wim
- Date:
- Tue Sep 30 17:14:35 2014 +0000
- Parent:
- 0:7163ac97bad9
- Commit message:
- Added Test for UDCs.
Changed in this revision
SDA5708.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7163ac97bad9 -r bffa08157551 SDA5708.lib --- a/SDA5708.lib Mon Sep 29 19:45:23 2014 +0000 +++ b/SDA5708.lib Tue Sep 30 17:14:35 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/wim/code/SDA5708/#5265413226e5 +http://mbed.org/users/wim/code/SDA5708/#d8a07b8468f6
diff -r 7163ac97bad9 -r bffa08157551 main.cpp --- a/main.cpp Mon Sep 29 19:45:23 2014 +0000 +++ b/main.cpp Tue Sep 30 17:14:35 2014 +0000 @@ -47,6 +47,28 @@ // 12345678 led.printf("Hi mbed "); wait(2); + + led.setUDC(0, (char *) udc_0); + led.setUDC(1, (char *) udc_1); + led.setUDC(2, (char *) udc_2); + led.setUDC(3, (char *) udc_3); + led.setUDC(4, (char *) udc_Bat_Hi); + led.setUDC(5, (char *) udc_Bat_Ha); + led.setUDC(6, (char *) udc_Bat_Lo); +// led.setUDC(7, (char *) udc_smiley); + led.setUDC(7, (char *) udc_AC); + + led.putc(0); + led.putc(1); + led.putc(2); + led.putc(3); + led.putc(4); + led.putc(5); + led.putc(6); + led.putc(7); + wait(2); + +// while(1) {} cnt=0x20; while(1) {