Everything works great but I can only use it with ATMEGA328 microcontroller,
because THE CODE WORKS ONLY WITH ANALOG PINS 4 and 5.
but what i want is to use RTC module with ATTiny microcontroller which doesn't have analog pins 4 & 5.
has anyone tried to change the pins? Or does anyone have another RTC code to offer?
I found out that the problem is with Arduino Wire Library:
"This library allows you to communicate with I2C / TWI devices. On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5"
So there is no way to use this RTC module with ATTiny ?