Hi...I am using the Sparkfun DS3234 RTC library and have a question. Previous to this, I had a DS3231 RTC which is similar but uses an I2C interface where the Ds3234 uses SPI. For the DS3231 when setting a hardware interrupt to trigger on the SQW Pin you had to use the following command:
rtcDS3231.writeSqwPinMode(DS3231_OFF); to stop oscillating signals from causing the alarm to fail. The examples for the DS3234 do not use this but they do include the command:
/
/ (Optional: enable SQW pin as an interrupt)
rtc.enableAlarmInterrupt();
I also noticed in the code for the library the following:
// writeSQW -- Set the SQW pin high, low, or to one of the square wave frequencies
void DS3234::writeSQW(sqw_rate value)
My question is if using this pin (set to high and active low). Do I need to call both
rtc.enableAlarmInterrupt();
and
rtc.writeSQW(1);
??? If so, I guess they just forgot in the example?