Mod10 Counter Counts 0 - 9 on Single Seven Segment Display

Dependencies:   mbed

Committer:
Eduvance
Date:
Sat May 17 16:17:55 2014 +0000
Revision:
0:375418015e74
Child:
1:cecfed677a08
InitialRawCommit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Eduvance 0:375418015e74 1 #include "mbed.h"
Eduvance 0:375418015e74 2
Eduvance 0:375418015e74 3 DigitalOut myled(LED1);
Eduvance 0:375418015e74 4
Eduvance 0:375418015e74 5 int main() {
Eduvance 0:375418015e74 6 while(1) {
Eduvance 0:375418015e74 7 myled = 1;
Eduvance 0:375418015e74 8 wait(0.2);
Eduvance 0:375418015e74 9 myled = 0;
Eduvance 0:375418015e74 10 wait(0.2);
Eduvance 0:375418015e74 11 }
Eduvance 0:375418015e74 12 }