keerthi vasan
/
sevensegments
adsdffddfsss
Fork of sevensegment by
Revision 0:cb6089d84fb2, committed 2015-07-16
- Comitter:
- keerthivasan
- Date:
- Thu Jul 16 10:08:09 2015 +0000
- Commit message:
- seven;
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 Thu Jul 16 10:08:09 2015 +0000 @@ -0,0 +1,47 @@ +#include "mbed.h" + +DigitalOut a(p8),b(p12),c(p11),d(p5),e(p6),f(p7),g(p9),h(p10); +int main() +{ + g=h=1;a=b=c=d=e=f=0; +wait(1); +a=d=e=f=g=h=1;b=c=0; +wait(1); +c=f=h=1;a=b=d=e=g=0; +wait(1); +e=f=h=1;a=b=c=d=g=0; +wait(1); +a=d=e=h=1;b=c=f=g=0; +wait(1); +b=e=h=1;a=c=d=f=g=0; +wait(1); +b=h=1;a=c=d=e=f=g=0; +wait(1); +d=e=f=g=h=1;a=b=c=0; +wait(1); +h=1;a=b=c=d=e=f=g=0; +wait(1); +e=h=1;a=b=c=d=f=g=0; +wait(2); + +e=h=1;a=b=c=d=f=g=0; +wait(1); +h=1;a=b=c=d=e=f=g=0; +wait(1); +d=e=f=g=h=1;a=b=c=0; +wait(1); +b=h=1;a=c=d=e=f=g=0; +wait(1); +b=e=h=1;a=c=d=f=g=0; +wait(1); +a=d=e=h=1;b=c=f=g=0; +wait(1); +e=f=h=1;a=b=c=d=g=0; +wait(1); +c=f=h=1;a=b=d=e=g=0; +wait(1); +a=d=e=f=g=h=1;b=c=0; +wait(1); + g=h=1;a=b=c=d=e=f=0; +wait(1); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jul 16 10:08:09 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/da0ca467f8b5 \ No newline at end of file