Skip to content

bitbank2/bb_rtc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitBank Realtime Clock Library

Copyright (c) 2023 BitBank Software, Inc.
Written by Larry Bank
bitbank@pobox.com

My focus lately has been to make embedded programming as simple as possible (for myself and everyone else). One of my ideas to simplify project code is to create device libraries that work as a category instead of for a specific device. What this means in this case is that there are several popular I2C realtime clock chips that share a lot of common functionality. By combining the code for all of them into a single library with a simple and consistent API, the device-specific details can be managed without the user worrying about them. This library currently supports the DS3231, RV-3032 and PCF8563 RTC modules; the three most popular devices currently in use. Each has slightly different capabilities, but I was able to create a simple API which covers all of the important features of each.

The interrupt pin (usually open-collector with pull-up resistor) is enabled for the alarms and countdown timer functions. It's up to you to act on the changing state of the pin.

The photo below shows the Arduino Nano 33 BLE example sketch running on my Nano+Feather breakout PCB (https://github.com/bitbank2/KiCad_Projects)

bb_rtc

If you find this code useful, please consider sending a donation or becoming a Github sponsor.

paypal

About

An Arduino RealTime Clock library which auto-detects DS3231, RV-3032 and PCF8563

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published