Color RGB LED test

Dependencies:   mbed

Committer:
techand
Date:
Sat Mar 10 11:10:13 2012 +0000
Revision:
0:b6ac5c379d0c

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
techand 0:b6ac5c379d0c 1 #include "mbed.h"
techand 0:b6ac5c379d0c 2
techand 0:b6ac5c379d0c 3 //DigitalOut myled(LED1);
techand 0:b6ac5c379d0c 4 DigitalOut blue(p24);
techand 0:b6ac5c379d0c 5 DigitalOut green(p25);
techand 0:b6ac5c379d0c 6 DigitalOut red(p26);
techand 0:b6ac5c379d0c 7
techand 0:b6ac5c379d0c 8 int main() {
techand 0:b6ac5c379d0c 9 while(1) {
techand 0:b6ac5c379d0c 10 blue = 1;
techand 0:b6ac5c379d0c 11 wait(1);
techand 0:b6ac5c379d0c 12 blue = 0;
techand 0:b6ac5c379d0c 13 green = 1;
techand 0:b6ac5c379d0c 14 wait(1);
techand 0:b6ac5c379d0c 15 green = 0;
techand 0:b6ac5c379d0c 16 red = 1;
techand 0:b6ac5c379d0c 17 wait(1);
techand 0:b6ac5c379d0c 18 red = 0;
techand 0:b6ac5c379d0c 19 }
techand 0:b6ac5c379d0c 20 }