
Haris Spahić Josip Kvesić
Revision 0:53fae77a287d, committed 2014-03-13
- Comitter:
- tim008
- Date:
- Thu Mar 13 15:51:02 2014 +0000
- Commit message:
- LV2-PAI-Grupa6-Tim008
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 53fae77a287d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 13 15:51:02 2014 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" + +BusOut myled(dp23,dp24,dp25,dp26,dp27,dp5,dp6,dp28); +DigitalOut enable(dp14); +DigitalIn taster(dp1); +int main() { + enable=0; + int brojac=0; + while(1) { + if(taster==0){ + myled=brojac; + brojac++; + wait(1); + if(brojac>255) brojac=0; + } + else if(taster==1){ + myled=brojac; + brojac--; + wait(1); + if(brojac<0) brojac=255; + } + } +}
diff -r 000000000000 -r 53fae77a287d mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 13 15:51:02 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file