ds1302-drv

Crates.iods1302-drv
lib.rsds1302-drv
version0.4.1
sourcesrc
created_at2024-11-10 02:39:11.10722
updated_at2024-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
repositoryhttps://github.com/sndnvaps/ds1302-drv
max_upload_size
id1442539
size34,683
Samuel Freeman (sndnvaps)

documentation

https://docs.rs/ds1302-drv

README

ds1302-rs

crates.io badge docs.rs badge

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.

About

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

DS1302 RTC Board

Crate features

  • rp2040 - use to enabled raspberry pico support
  • rp2350 - use to enabled raspberry pico2 support (default features)

Examples

https://github.com/sndnvaps/ds1302-drv/tree/main/examples/pico2-display-rtc https://github.com/sndnvaps/ds1302-drv/tree/main/examples/pico-display-rtc

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 10

cargo fmt