RTClib
|
#include <Adafruit_I2CDevice.h>
#include <Arduino.h>
Go to the source code of this file.
Classes | |
class | DateTime |
Simple general-purpose date/time class (no TZ / DST / leap seconds). More... | |
class | TimeSpan |
Timespan which can represent changes in time with seconds accuracy. More... | |
class | RTC_I2C |
A generic I2C RTC base class. DO NOT USE DIRECTLY. More... | |
class | RTC_DS1307 |
RTC based on the DS1307 chip connected via I2C and the Wire library. More... | |
class | RTC_DS3231 |
RTC based on the DS3231 chip connected via I2C and the Wire library. More... | |
class | RTC_PCF8523 |
RTC based on the PCF8523 chip connected via I2C and the Wire library. More... | |
class | RTC_PCF8563 |
RTC based on the PCF8563 chip connected via I2C and the Wire library. More... | |
class | RTC_Millis |
RTC using the internal millis() clock, has to be initialized before use. NOTE: this is immune to millis() rollover events. More... | |
class | RTC_Micros |
RTC using the internal micros() clock, has to be initialized before use. Unlike RTC_Millis, this can be tuned in order to compensate for the natural drift of the system clock. Note that now() has to be called more frequently than the micros() rollover period, which is approximately 71.6 minutes. More... | |
Macros | |
#define | SECONDS_PER_DAY 86400L |
60 * 60 * 24 More... | |
#define | SECONDS_FROM_1970_TO_2000 946684800 |
Unixtime for 2000-01-01 00:00:00, useful for initialization. | |
Original library by JeeLabs http://news.jeelabs.org/code/, released to the public domain
License: MIT (see LICENSE)
This is a fork of JeeLab's fantastic real time clock library for Arduino.
For details on using this library with an RTC module like the DS1307, PCF8523, or DS3231, see the guide at: https://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit/overview
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
#define SECONDS_PER_DAY 86400L |
60 * 60 * 24
Constants
enum Ds1307SqwPinMode |
DS1307 SQW pin mode settings
enum Ds3231SqwPinMode |
enum Ds3231Alarm1Mode |
DS3231 Alarm modes for alarm 1
enum Ds3231Alarm2Mode |
DS3231 Alarm modes for alarm 2
enum Pcf8523SqwPinMode |
PCF8523 INT/SQW pin mode settings
PCF8523 Timer Source Clock Frequencies for Timers A and B
enum PCF8523TimerIntPulse |
PCF8523 Timer Interrupt Low Pulse Width options for Timer B only
enum Pcf8523OffsetMode |
enum Pcf8563SqwPinMode |