Real Time Lab Program

Dependencies:   mbed

Committer:
robt
Date:
Sun Jan 25 16:25:50 2015 +0000
Revision:
0:569757d5ecc1
Real Time Lab Program;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robt 0:569757d5ecc1 1 #include "mbed.h"
robt 0:569757d5ecc1 2
robt 0:569757d5ecc1 3 DigitalOut A(p21);
robt 0:569757d5ecc1 4 DigitalOut B(p22);
robt 0:569757d5ecc1 5 DigitalOut C(p23);
robt 0:569757d5ecc1 6 DigitalOut D(p24);
robt 0:569757d5ecc1 7 DigitalOut E(p25);
robt 0:569757d5ecc1 8
robt 0:569757d5ecc1 9 int main() {
robt 0:569757d5ecc1 10
robt 0:569757d5ecc1 11 while(1) {
robt 0:569757d5ecc1 12 A=1;
robt 0:569757d5ecc1 13 B=0;
robt 0:569757d5ecc1 14 C=1;
robt 0:569757d5ecc1 15 D=0;
robt 0:569757d5ecc1 16 E=0;
robt 0:569757d5ecc1 17 wait(0.5);
robt 0:569757d5ecc1 18 A=0;
robt 0:569757d5ecc1 19 B=1;
robt 0:569757d5ecc1 20 C=0;
robt 0:569757d5ecc1 21 D=1;
robt 0:569757d5ecc1 22 E=1;
robt 0:569757d5ecc1 23 wait(0.5);
robt 0:569757d5ecc1 24 }
robt 0:569757d5ecc1 25 }