Binary Counter on 4 Relè digit of Experiment BOX with Arduino

Dependencies:   mbed

Fork of BusOut_HelloWorld by mbed_example

main.cpp

Committer:
mbed_official
Date:
2013-02-11
Revision:
0:717993c337df
Child:
2:3e552c5d3ea4

File content as of revision 0:717993c337df:

#include "mbed.h"
 
BusOut myleds(LED1, LED2, LED3, LED4);
 
int main() {
    while(1) {
        for(int i=0; i<16; i++) {
            myleds = i;
            wait(0.25);
        }
    }
}