Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.48 KB

File metadata and controls

23 lines (18 loc) · 1.48 KB

DS3231 Library - Examples

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:

Examples on Times

  • 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.

Examples on Alarms

  • 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.

Other Examples