this proyect will help you to build a binary clock with an arduino and RTC module. 

we create our own library fro this proyect and its based on registers. we use an integrated circuit called 74hc595 to controll all the leds. When we burned the pcb, we added 3 bottons to control the function configure.