Program for Arduino-driven clock