Quote Originally Posted by inse View Post
Hi Dan,

i hope you got ahead with your code in the meantime.
My project is a clock (who could guess it?) with electromechanic seven segment displays.
The clock is running (1/2 hour behind by now) but the code for setting the time is still missing - as well as the buttons to be used for it.

You don't have to initialize the pins you use for I2C, it is done by the i2cread/i2cwrite commands.

I don't see what is causing the communication problems in your code - so i propose you check your hardware wiring.

Best wishes,

Ingo
hey

yer i got it working in the end, it turned out to be the 32.768 crystal i had, any way i swapped it out and it works ok now, apart from when it gets to say 9 seconds it skips to 16 but thats probably because i have no bcd conversions in my code?

Dan