Skip to content

mozzwald/RTC_M41T62

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of JeeLab & Adafruit's real time clock library for Arduino modified to work with the ST M41T62 real time clock IC. Significant changes are to the square wave function and added alarm functions. See example sketches.

For details on using this library with an RTC module, see the guide at: https://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit/overview

To download. click the DOWNLOADS button to the right, and rename the uncompressed folder RTClib.

Place the RTClib folder in your arduinosketchfolder/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.

Added alarm functions

  • alarmSet(DateTime): Sets alarm to desired time. Uses DateTime variable. Basically the same as adjust() but sets the alarm time instead.
  • alarmRepeat(int): Returns or sets alarm repeat mode
    • 1: once per second
    • 2: once per minute
    • 3: once per hour
    • 4: once per day
    • 5: once per month
    • 6: once per year
  • alarmEnable(bool): True/False to enable/disable alarm

About

Modified Jeelabs/Adafruit RTC Arduino Lib for ST M41T62

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages