This code will do the basic steps necessary to get the info required to make LEDs go on and off at the right times.