Skip to content

RS registers shouldn't be assumed #15

Closed
@gritnix

Description

@gritnix

This code has the following comment:
# Try and verify this is the RTC we expect by checking the rate select
# control bits which are 1 on reset and shouldn't ever be changed.

My project uses the 1Hz square wave output from the interrupt pin so these registers ARE changed to 00. I'm not sure why the authors believe these registers will never be changed. Anyone wishing to use the square wave output from the interrupt pin might change them. The code, as written, cannot "find" my DS3231 because of this, although it is there and completely readable. Not sure if there's a better way. I'm just going to remove that bit in my local copy.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions