#pragma config(Sensor, dgtl1, red, sensorLEDtoVCC) #pragma config(Sensor, dgtl2, yellow, sensorLEDtoVCC) #pragma config(Sensor, dgtl3, green, sensorLEDtoVCC) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// task main() { int count = 0; while (count < 10) { turnLEDOn(red); turnLEDOn(yellow); turnLEDOn(green); wait(.5); turnLEDOff(red); turnLEDOff(yellow); turnLEDOff(green); wait(.5); count = count + 1; } }