![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
3.1.5
Dependencies: mbed
Revision 0:2ce973ba7202, committed 2017-09-12
- Comitter:
- olemh88
- Date:
- Tue Sep 12 11:18:23 2017 +0000
- Commit message:
- 3.1.5
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 2ce973ba7202 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 12 11:18:23 2017 +0000 @@ -0,0 +1,40 @@ +#include "mbed.h" +Serial pc(USBTX, USBRX); +BusOut teller(p21, p22, p23, p24, p25, p26); +DigitalOut bryter(p20); +DigitalOut bryter2(p19); + + +int main() +{ + while(1) { + float a = 0.1; + if (bryter2 == 1) { + a = 1; + } + if (bryter == 0) { + for(int x = 0; x <= 15; x++) { + teller = x; + wait(a); + if (x == 15) { + for(int x = 15; x > 0; x--) { + teller = x; + wait(a); + } + } + } + } + if (bryter == 1) { + for(int x = 0; x <= 63; x++) { + teller = x; + wait(a); + if (x == 63) { + for(int x = 63; x > 0; x--) { + teller = x; + wait(a); + } + } + } + } + } +}
diff -r 000000000000 -r 2ce973ba7202 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Sep 12 11:18:23 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec \ No newline at end of file