The RTC is all nice and dandy, but the libraries for it that I see have lots of code that is useless for this project. All I need this thing to do is to track the seconds. So the code that specifies the day of the week, the month etc, is of no use.
So, for the code, could I use an if statement for each second. For example, I would have if seconds is equal to 0, then pin 1,2,3 and 4 are low. Then the next if statement would be if seconds equal to 1, then pin 1,2,3, are low but pin 4 is high. and so on and so forth. Will this work without causing a lot of delay? or is there a better way to do this?