3Dezibot dezibot = Dezibot();
5 // put your setup code here, to run once:
11 // put your main code here, to run repeatedly:
12 Serial.print("Front:");
13 Serial.print(dezibot.lightDetection.getAverageValue(IR_FRONT,20,1));
14 Serial.print(",Left:");
15 Serial.print(dezibot.lightDetection.getAverageValue(IR_LEFT,20,1));
16 Serial.print(",Right:");
17 Serial.print(dezibot.lightDetection.getAverageValue(IR_RIGHT,20,1));
18 Serial.print(",Back:");
19 Serial.println(dezibot.lightDetection.getAverageValue(IR_BACK,20,1));
20 switch(dezibot.lightDetection.getBrightest(IR)){
22 dezibot.multiColorLight.setTopLeds(BLUE);
25 dezibot.multiColorLight.setTopLeds(RED);
28 dezibot.multiColorLight.setTopLeds(GREEN);
31 dezibot.multiColorLight.setTopLeds(YELLOW);