Parkavi Prabhaharan
/
rollingdisp
Simple 7 segment display with 2 LEDs.. Editable for different messages
Revision 0:3365a6d3372b, committed 2013-08-01
- Comitter:
- Parkz
- Date:
- Thu Aug 01 15:50:43 2013 +0000
- Commit message:
- 2x7 LED rolling display... Could be edited easily
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 3365a6d3372b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Aug 01 15:50:43 2013 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +BusOut disp1(p12,p11,p10,p9,p8,p7,p6,p5); +BusOut disp2(p20,p19,p18,p17,p16,p15,p14,p13); +int Hex[]={0xFF,0x80,0x88,0xC7,0x88,0xFF}; +int main() { + while(1) { +for(int i=1;i<=5;i++) +{ +disp1=Hex[i]; +disp2=Hex[i-1]; +wait(1); +} +} +}
diff -r 000000000000 -r 3365a6d3372b mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Aug 01 15:50:43 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17 \ No newline at end of file