-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.txt
executable file
·70 lines (53 loc) · 1.52 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
I don't maintain this, so you probably shouldn't use it! (Not sure if it still works!)
A Real Time Clock (RTC) Library for DS1307 compatible chips.
-------------------------------------------------------------
Tested to compile under Arduino 1.0.3
Also inclues DS1307, DS3231 (Chronodot) and DS3234-SPI specific functions.
Basic functions (see examples of how to use):
.begin
.adjust
.isrunning
.now
DS1307 specific functions:
.readMemory
.writeMemory
DS3231 specific functions:
.getTemperature
.getA1Time
.getA2Time
.setA1Time
.setAlarm1Simple
.setA2Time
.setAlarm2Simple
.turnOnAlarm
.turnOffAlarm
.checkAlarmEnabled
.checkIfAlarm
DS3234 specific functions:
.getTemperature
.getA1Time
.getA2Time
.setA1Time
.setAlarm1Simple
.setA2Time
.setAlarm2Simple
.turnOnAlarm
.turnOffAlarm
.checkAlarmEnabled
.checkIfAlarm
Credits:
---------
- Code by JeeLabs http://news.jeelabs.org/code/
Released to the public domain! Enjoy!
- Optimized DS1307 code by ADAfruit and others
- Merged read/write RAM memory functions from:
github.com/dmalec/RTClib by MrAlvin 2012-02-27
- Merged DS3231 & DS3234 functions from:
github/coobro/RTClib by MrAlvin 2012-02-27
Alarm code for DS3231 (Chronodot) heavily used/modified
from Eric Ayars DS3231 library by Coobro
Eric Ayars code is located at:
http://hacks.ayars.org/2011/04/ds3231-real-time-clock.html
- Chronodot keyword added by MrAlvin 2012-02-28
- DS3234 functions added
by Daniel Knox