Some code I wrote as well as adapted to be used on the Arduino to control Christmas lights.