test

Dependencies:   mbed

Committer:
lmessier
Date:
Wed Jun 14 08:58:09 2017 +0000
Revision:
0:f4c0a6a226f8
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lmessier 0:f4c0a6a226f8 1 #include "mbed.h"
lmessier 0:f4c0a6a226f8 2
lmessier 0:f4c0a6a226f8 3 DigitalOut myled(LED1);
lmessier 0:f4c0a6a226f8 4 DigitalOut myled2(LED2);
lmessier 0:f4c0a6a226f8 5 DigitalOut myled3(LED3);
lmessier 0:f4c0a6a226f8 6 DigitalOut myled4(LED4);
lmessier 0:f4c0a6a226f8 7
lmessier 0:f4c0a6a226f8 8 int main() {
lmessier 0:f4c0a6a226f8 9 while(1)
lmessier 0:f4c0a6a226f8 10 {
lmessier 0:f4c0a6a226f8 11 myled=0;
lmessier 0:f4c0a6a226f8 12 myled2=0;
lmessier 0:f4c0a6a226f8 13 myled3=0;
lmessier 0:f4c0a6a226f8 14 myled4=0;
lmessier 0:f4c0a6a226f8 15 wait(0.2);
lmessier 0:f4c0a6a226f8 16 myled=1;
lmessier 0:f4c0a6a226f8 17 wait(0.2);
lmessier 0:f4c0a6a226f8 18 myled2=1;
lmessier 0:f4c0a6a226f8 19 wait(0.2);
lmessier 0:f4c0a6a226f8 20 myled3=1;
lmessier 0:f4c0a6a226f8 21 wait(0.2);
lmessier 0:f4c0a6a226f8 22 myled4=1;
lmessier 0:f4c0a6a226f8 23
lmessier 0:f4c0a6a226f8 24
lmessier 0:f4c0a6a226f8 25
lmessier 0:f4c0a6a226f8 26
lmessier 0:f4c0a6a226f8 27 }
lmessier 0:f4c0a6a226f8 28 }