View Code? Open in Web Editor
NEW
Platform agnostic driver for the DS1307 real-time clock written in Rust using embedded-hal
Home Page: https://blog.eldruin.com/ds1307-real-time-clock-rtc-driver-in-rust/
License: Apache License 2.0
ds1307-rs's People
ds1307-rs's Issues
Hello and thank you for the library.
I am testing my DS1307 module using your library and I discovered that when I do driver.set_running()
, the module doesn't actually work. If we look in the datasheet, it is indeed the case (https://www.analog.com/media/en/technical-documentation/data-sheets/DS1307.pdf):
Bit 7 of Register 0 is the clock halt (CH) bit. When this bit is set to 1, the oscillator is disabled. When cleared to 0, the oscillator is enabled.
So, the solution would be just to swap the implementations.