tim008 tim008
/
LV2_Grupa3_Zadatak1
Omerovic Mirza, Keco Armin
Revision 0:bbbfc2178bf3, committed 2014-03-10
- Comitter:
- tim008
- Date:
- Mon Mar 10 15:57:48 2014 +0000
- Commit message:
- LV2-PAI-Grupa3-Zadatak1
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 bbbfc2178bf3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 10 15:57:48 2014 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +BusOut myleds (dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28); +DigitalOut enable (dp14); +DigitalIn taster1 (dp1); +int main() { + enable = 0; + int x = 0; + myleds = x; + while(1) { + myleds = (x + 1) % 256; + wait (1); + if (taster1 == 1) x--; + else x++; + + } +} \ No newline at end of file
diff -r 000000000000 -r bbbfc2178bf3 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 10 15:57:48 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file