Logic for an Arduino-controlled binary clock with LED display.