Skip to content

Commit 30fba6c

Browse files
authored
Merge pull request #25 from nosferatujr/patch-1
Update adafruit_pcf8523.py
2 parents a0cf72d + b42ae4f commit 30fba6c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

adafruit_pcf8523.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ class PCF8523:
113113
datetime_register = i2c_bcd_datetime.BCDDateTimeRegister(0x03, False, 0)
114114
"""Current date and time."""
115115

116+
clockout_frequency = i2c_bits.RWBits(3, 0x0F, 3)
117+
"""Clock output frequencies generated. Default is 32.768kHz.
118+
Possible values are as shown (selection value - frequency).
119+
000 - 32.768khz
120+
001 - 16.384khz
121+
010 - 8.192kHz
122+
011 - 4.096kHz
123+
100 - 1.024kHz
124+
101 - 0.032kHz (32Hz)
125+
110 - 0.001kHz (1Hz)
126+
111 - Disabled
127+
"""
128+
116129
# The False means that day and weekday share a register. The 0 is that the
117130
# first day of the week is value 0 and not 1.
118131
alarm = i2c_bcd_alarm.BCDAlarmTimeRegister(

0 commit comments

Comments
 (0)