-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DS3232RTC::alarmInterrupt issue #102
Comments
Is there no scenario where I want to set A2IE and/or A1IE and not set INTCN, or perhaps not set it simultaneously? It may be better to control INTCN independently of A1IE and A2IE. Calling I can see where the documentation for alarmInterrupt() and also for squareWave() could be improved. |
I can't think of such scenario. Setting A1IE and/or A2IE without INTCN will do nothing. |
Off the top, I am not sure that I can either, but it could be coded that way. There may be a small risk that if The suggestion here is a convenience feature; it would avoid a call to |
I understand your concern. However if anyone used
I don't think it's convenience, it would just make more sense that Anyway, I thought this minor code/documentation (as you mentioned earlier) issue is worth mentioning. To anyone who is familiar with the device's documentation and knows the how to set/reset register bits, this wouldn't be a problem. |
In case of alarmEnabled = true is requested for any of the alarms, the INTCN bit in the control register could be also set, to make sure that the INT pin is really asserted. (calling this method will not result the described behavior, in case of INTCN was set to 0 previously).
The text was updated successfully, but these errors were encountered: