Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:4f8b82c6ced4, committed 2014-03-13
- Comitter:
- tim004
- Date:
- Thu Mar 13 17:50:14 2014 +0000
- Commit message:
- LV2_grupa7_tim004
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 4f8b82c6ced4 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 13 17:50:14 2014 +0000 @@ -0,0 +1,33 @@ +#include "mbed.h" + +BusOut led(dp23,dp24,dp25,dp26,dp27,dp5,dp6,dp28); +DigitalOut enable(dp14); +DigitalIn taster(dp1); + +int main() { + + int i=0; + enable=0; + led=0; + + while(1) { + + while(taster==0) + { + led=i; + wait(1); + i++; + if(i==256) i=0; + } + while(taster==1) + { + + led=i; + wait(1); + i--; + if(i==-1) i=256; + } + + + } +}
diff -r 000000000000 -r 4f8b82c6ced4 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 13 17:50:14 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file