The code between the curly braces tells the robot what function to run. This coding moves a wheel 127 degrees. When the room is dark the wheel moves 127 degrees in the opposite direction. After the wheel finishes moving there is a 2 second wait time. Once this is finished the program resets.
This program requires something to press the bump switch for the program to run. This progam only turns the LED light on and off. The program starts with the LED on then waits one second until it is turned off. That repeats three times. When program is finished it is looped for three seconds.