Završni rad Androić H most upravljan MBED-om

Dependencies:   mbed

Committer:
cvitas
Date:
Tue May 12 18:27:47 2015 +0000
Revision:
0:ce1da5b1e608
Child:
1:a09621d44b14
v1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cvitas 0:ce1da5b1e608 1 #include "mbed.h"
cvitas 0:ce1da5b1e608 2
cvitas 0:ce1da5b1e608 3 DigitalOut OUT_A(p21);
cvitas 0:ce1da5b1e608 4 DigitalOut OUT_B(p22);
cvitas 0:ce1da5b1e608 5
cvitas 0:ce1da5b1e608 6 int main() {
cvitas 0:ce1da5b1e608 7 while(1) {
cvitas 0:ce1da5b1e608 8 OUT_A = 1;
cvitas 0:ce1da5b1e608 9 OUT_B = 0;
cvitas 0:ce1da5b1e608 10 wait(2);
cvitas 0:ce1da5b1e608 11 OUT_A = 0;
cvitas 0:ce1da5b1e608 12 OUT_B = 0;
cvitas 0:ce1da5b1e608 13 wait(1);
cvitas 0:ce1da5b1e608 14 OUT_A = 0;
cvitas 0:ce1da5b1e608 15 OUT_B = 1;
cvitas 0:ce1da5b1e608 16 wait(2);
cvitas 0:ce1da5b1e608 17 OUT_A = 0;
cvitas 0:ce1da5b1e608 18 OUT_B = 0;
cvitas 0:ce1da5b1e608 19 wait(1);
cvitas 0:ce1da5b1e608 20 }
cvitas 0:ce1da5b1e608 21 }