Page 1 of 1

DS3234 writeToSRAM

Posted: Sat Oct 07, 2017 10:14 am
by hkwmon
In SparkFunDS3234RTC.cpp i have seen this function :

void DS3234::writeToSRAM(uint8_t address, uint8_t data){
spiWriteByte(DS3234_REGISTER_SRAMA, address);
spiWriteByte(DS3234_REGISTER_SRAMD, data);
}

Unfortunately I don't found in the DS3234_RTC_Demo.ino
an example how I have use this function.
I don't know which address or data I must enter.
rtc.writeToSRAM ( ????, rtc.hour?);
Thanks for your any help.
Willy