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

Dependencies:   mbed

Fork of BusOut_HelloWorld by mbed_example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002  
00003 BusOut myleds(D13, D4, D7, D8);
00004  
00005 int main() {
00006     while(1) {
00007         for(int i=0; i<16; i++) {
00008             myleds = i;
00009             wait(0.25);
00010         }
00011     }
00012 }