This is a work in progress Raspberry Pi Pico library for DS3231 real time clock module. Current features are:
- Configuring time.
- Reading time.
- Setting alarm 1 and alarm 2.
- Setting alarm interrupt from SQW pin.
- AM/PM mode.
- Setting output of square wave signal from SQW pin.
- Enabling-Disabling oscillator when on powered by on-board battery.
- Setting 32kHZ output from 32K pin.
- Reading temperature data.
- Setting aging offset calibration data.
- Reading and writing functions for onboard EEPROM AT24C32.
- Copy ds3231 folder under libraries folder.
- Add "add_subdirectory(ds3231)" to your CMakeLists.txt file.
- add "pico_ds3231" in your CMake "target_link_libraries" line