adafruit_ds3231 - DS3231 Real Time Clock module

CircuitPython library to support DS3231 Real Time Clock (RTC).

This library supports the use of the DS3231-based RTC in CircuitPython.

Author(s): Philip R. Moyer and Radomir Dopieralski for Adafruit Industries.

Implementation Notes

Hardware:

Software and Dependencies:

Notes:

  1. Milliseconds are not supported by this RTC.
  2. Datasheet: https://datasheets.maximintegrated.com/en/ds/DS3231.pdf
class adafruit_ds3231.DS3231(i2c)[source]

Interface to the DS3231 RTC.

alarm1

Alarm time for the first alarm.

alarm1_interrupt

True if the interrupt pin will output when alarm1 is alarming.

alarm1_status

True if alarm1 is alarming. Set to False to reset.

alarm2

Alarm time for the second alarm.

alarm2_interrupt

True if the interrupt pin will output when alarm2 is alarming.

alarm2_status

True if alarm2 is alarming. Set to False to reset.

datetime

Gets the current date and time or sets the current date and time then starts the clock.

datetime_register

Current date and time.

disable_oscillator

True if the oscillator is disabled.

lost_power

True if the device has lost power since the time was set.