Support for DS1307 (#58)

* Support for DS1307
This commit is contained in:
k-brk
2019-05-24 12:56:26 +02:00
committed by Ron Evans
parent 30b118cf63
commit dce063e0c2
6 changed files with 247 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package ds1307
const (
I2CAddress = 0x68
TimeDate = 0x00
Control = 0x7
//CH is oscillator halt bit
CH = 0x7
SRAMBeginAddres = 0x8
SRAMEndAddress = 0x3F
)
const (
SQW_OFF = 0x0
SQW_1HZ = 0x10
SQW_4KHZ = 0x11
SQW_8KHZ = 0x12
SQW_32KHZ = 0x13
)