Best program ever.

Dependencies:   mbed

main.cpp

Committer:
gard0110
Date:
2018-09-20
Revision:
0:023746835c73

File content as of revision 0:023746835c73:

#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;
        }   
}