Initialize the clocks and turn on/off the LEDs.