Crates.io | ds1302-drv |
lib.rs | ds1302-drv |
version | 0.4.1 |
source | src |
created_at | 2024-11-10 02:39:11.10722 |
updated_at | 2024-11-10 06:48:17.389982 |
description | This Rust library provides an interface for interacting with ds1302 RTC using the rp2040-hal or rp235x-hal. |
homepage | |
repository | https://github.com/sndnvaps/ds1302-drv |
max_upload_size | |
id | 1442539 |
size | 34,683 |
DS1302 real time clock-calendar platform agnostic driver
This Rust library provides an interface for interacting with ds1302 RTC using the rp2040-hal or rp235x-hal.
The DS1302 trickle-charge timekeeping chip contains a real-time clock/calendar and 31 bytes of static RAM. It
communicates with a microprocessor via a simple serial interface. The real-time clock/calendar provides seconds,
minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for
months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or
12-hour format with an AM/PM indicator. The chip driver is based on embedded-hal
traits.
Datasheet: DS1302
DS1302 RTC Board
rp2040
- use to enabled raspberry pico supportrp2350
- use to enabled raspberry pico2 support (default features)https://github.com/sndnvaps/ds1302-drv/tree/main/examples/pico2-display-rtc https://github.com/sndnvaps/ds1302-drv/tree/main/examples/pico-display-rtc
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.