Leonardo Iandiorio
/
BlinkTicker123
Solution to blink ticker exercise
Revision 0:0e284accb2f9, committed 2018-11-14
- Comitter:
- iandil
- Date:
- Wed Nov 14 10:32:49 2018 +0000
- Commit message:
- Fixed in class solution;
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 0e284accb2f9 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Nov 14 10:32:49 2018 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +DigitalOut led1(LED1); +DigitalOut led2(LED2); +DigitalOut led3(LED3); + +int main() +{ + int counter = 0; + while(1) { + led1 = counter & 1; + led2 = counter & 2; + led3 = counter & 4; + + wait(0.4); + + counter++; + } +} \ No newline at end of file
diff -r 000000000000 -r 0e284accb2f9 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Nov 14 10:32:49 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file