/ds3231_driver

Cross-platform driver with HAL (hardware abstraction layer) for Maxim Integrated DS3231 real-time clock :alarm_clock:

Primary LanguageCMIT LicenseMIT

DS3231 driver

A library for Maxim Integrated DS3231 real-time clock (RTC) with Hardware Abstraction Layer for I2C interface, it is written in C.

Features

✓ Cross-platform, works on a different platforms like: nRF5x, ESP32
✓ Use the date and time structure struct tm
✓ Set / get data and time
✓ Set two alarms (alarm1 and alarm2)
✓ Set squarewave frequency (1hz, 1024hz, 4096hz or 8192hz)
✓ Read internal temperature sensor value
✓ Get and set the oscillator stop flag

Supported platforms

Getting Started

Documentation

Contributing

Thank you for considering contributing, just create GitHub pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.