Best program ever.
Dependencies: mbed
Revision 0:023746835c73, committed 2018-09-20
- Comitter:
- gard0110
- Date:
- Thu Sep 20 18:37:13 2018 +0000
- Commit message:
- Program B
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Sep 20 18:37:13 2018 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + + +int main() { + + DigitalOut led[5] = {p26, p27, p28, p29, p30}; + + int x; + + while(1){ + x = (rand() %5); + led[x] = 1; + wait(1); + led[x] = 0; + } +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Sep 20 18:37:13 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file