yep, that's done the trick. One final thing if I'm setting the hour to be 6, how do I know if its am or pm? or how can I set it to be 18:00 instead of 6?
So use (0x40 | your_time) for 24-hour, or ( ((is_am) ? 0 : 0x02) | your_time) for am/pm mode.
I also thought about getting this to drive a clock and be very hands off, and for me that means adjusting for DST so once set I shouldn't have to touch it.
So when using the Wire library you need to manually hook up a pull-up resistor. I was playing around with the digital lines trying to use the internal pullup resistors and get the I2C communication going myself. I could never even get the first ACK.Why is the Wire library on the analog lines? Is there something I am missing in regards to the complexity of communication over an I2C interface with arduino?