How does one reset a DS3231 rtc from software? I'd like to reset it so that the date and time resets back to factory.
I already tried clearing the bits in the control register, but that didn't do anything:
I2C_Start();
I2C_Write(0xD0);
I2C_Write(0x0E);
I2C_Write(0x00);
I2C_Stop();