RGB_BERTL

Dependencies:   mbed

Committer:
Alexander400
Date:
Thu Apr 30 11:47:38 2015 +0000
Revision:
0:5769d3a53f30
RGB_BERTL;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Alexander400 0:5769d3a53f30 1 #include "mbed.h"
Alexander400 0:5769d3a53f30 2 #include "ur_Bertl.h"
Alexander400 0:5769d3a53f30 3
Alexander400 0:5769d3a53f30 4 void RGBLed(bool red, bool green, bool blue);
Alexander400 0:5769d3a53f30 5
Alexander400 0:5769d3a53f30 6 int main() {
Alexander400 0:5769d3a53f30 7
Alexander400 0:5769d3a53f30 8 ur_Bertl karel;
Alexander400 0:5769d3a53f30 9
Alexander400 0:5769d3a53f30 10 while(1){
Alexander400 0:5769d3a53f30 11 karel.RGBLed(1,0,0);
Alexander400 0:5769d3a53f30 12 wait_ms(500);
Alexander400 0:5769d3a53f30 13 karel.RGBLed(0,1,0);
Alexander400 0:5769d3a53f30 14 wait_ms(500);
Alexander400 0:5769d3a53f30 15 karel.RGBLed(0,0,1);
Alexander400 0:5769d3a53f30 16 wait_ms(500);
Alexander400 0:5769d3a53f30 17
Alexander400 0:5769d3a53f30 18 karel.RGBLed(1,1,0);
Alexander400 0:5769d3a53f30 19 wait_ms(500);
Alexander400 0:5769d3a53f30 20 karel.RGBLed(0,1,1);
Alexander400 0:5769d3a53f30 21 wait_ms(500);
Alexander400 0:5769d3a53f30 22 karel.RGBLed(1,1,1);
Alexander400 0:5769d3a53f30 23 wait_ms(500);
Alexander400 0:5769d3a53f30 24 karel.RGBLed(1,0,1);
Alexander400 0:5769d3a53f30 25 wait_ms(500);
Alexander400 0:5769d3a53f30 26 }
Alexander400 0:5769d3a53f30 27 }
Alexander400 0:5769d3a53f30 28