This directory contains examples demonstating code usage. This is a good place to start, if you wish to get to know this library.
You can find examples on the following topics:
- now: Basic example of reading back the current time with
RTClib::now(). - echo_time: Demonstration of read back functions for the DS3231 RTC with output to serial monitor.
- DS3231_set: Demonstration of set-time routines for a DS3231 RTC.
- set_echo: Sets the time from input and prints back time stamps for 5s.
- DS3231_test: Full demonstration of DS3231 RTC functions with print back to serial monitor.
- AlarmPolling: Basic alarm example demonstrating setting and reading an alarm.
- AlarmInterrupt: Using DS3231 alarms with interrupts via the SQW output.
- AdvanceAlarm: Periodic alarm at an arbitrary interval in time based on interrupts.
- DS3231_oscillator_test: Output of 32 kHz signal via SQW pin.