Best program ever.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:023746835c73
--- /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; + } +} +