@@ -6,9 +6,13 @@ Introduction to Adafruit's PCF8523 Real Time Clock (RTC) Library
6
6
:target: https://circuitpython.readthedocs.io/projects/pcf8523/en/latest/
7
7
:alt: Documentation Status
8
8
9
- .. image :: https://badges.gitter.im/adafruit/circuitpython.svg
10
- :target: https://gitter.im/adafruit/circuitpython?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
11
- :alt: Gitter
9
+ .. image :: https://img.shields.io/discord/327254708534116352.svg
10
+ :target: https://discord.gg/nBQh6qu
11
+ :alt: Discord
12
+
13
+ .. image :: https://travis-ci.org/adafruit/Adafruit_CircuitPython_PCF8523.svg?branch=master
14
+ :target: https://travis-ci.org/adafruit/Adafruit_CircuitPython_PCF8523
15
+ :alt: Build Status
12
16
13
17
This is a great battery-backed real time clock (RTC) that allows your
14
18
microcontroller project to keep track of time even if it is reprogrammed,
@@ -23,7 +27,7 @@ temperature compensated alternative, please check out the
23
27
If you need a DS1307 for compatibility reasons, check out our
24
28
`DS1307 RTC breakout <https://www.adafruit.com/products/3296 >`_.
25
29
26
- .. image :: 3295-00.jpg
30
+ .. image :: docs/_static/ 3295-00.jpg
27
31
28
32
Dependencies
29
33
=============
@@ -76,15 +80,15 @@ the RTC object:
76
80
Date and time
77
81
-------------
78
82
79
- To set the time, you need to set `` datetime ` ` to a `time.struct_time ` object:
83
+ To set the time, you need to set datetime` to a `time.struct_time ` object:
80
84
81
85
.. code :: python
82
86
83
87
rtc.datetime = time.struct_time((2017 ,1 ,9 ,15 ,6 ,0 ,0 ,9 ,- 1 ))
84
88
85
- After the RTC is set, you retrieve the time by reading the `` datetime ` `
86
- attribute and access the standard attributes of a struct_time such as `tm_year `,
87
- `tm_hour ` and `tm_min `.
89
+ After the RTC is set, you retrieve the time by reading the `datetime `
90
+ attribute and access the standard attributes of a struct_time such as `` tm_year ` `,
91
+ `` tm_hour `` and `` tm_min ` `.
88
92
89
93
.. code :: python
90
94
@@ -95,7 +99,7 @@ attribute and access the standard attributes of a struct_time such as `tm_year`,
95
99
Alarm
96
100
-----
97
101
98
- To set the time, you need to set `` alarm ` ` to a tuple with a `time.struct_time `
102
+ To set the time, you need to set `alarm ` to a tuple with a `time.struct_time `
99
103
object and string representing the frequency such as "hourly":
100
104
101
105
.. code :: python
@@ -111,10 +115,51 @@ After the RTC is set, you retrieve the alarm status by reading the
111
115
print (" wake up!" )
112
116
rtc.alarm_status = False
113
117
114
- API Reference
115
- =============
118
+ Table of Contents
119
+ =================
120
+
121
+ .. toctree ::
122
+ :maxdepth: 4
123
+
124
+ self
125
+
126
+ .. toctree ::
127
+ :caption: Examples
128
+
129
+ docs/examples
130
+
131
+ .. toctree ::
132
+ :caption: API Reference
133
+ :maxdepth: 3
134
+
135
+ docs/api
136
+
137
+
138
+ .. toctree ::
139
+ :caption: Tutorials
140
+
141
+ Adafruit PCF8523 Real Time Clock <https://learn.adafruit.com/adafruit-pcf8523-real-time-clock?view=all >
142
+ Adafruit Adalogger FeatherWing <https://learn.adafruit.com/adafruit-adalogger-featherwing?view=all >
116
143
117
144
.. toctree ::
118
- :maxdepth: 2
145
+ :caption: Related Products
146
+
147
+ Adafruit PCF8523 Real Time Clock Breakout <https://www.adafruit.com/product/3295 >
148
+ Adafruit Adalogger FeatherWing - RTC + SD <https://www.adafruit.com/product/2922 >
149
+
150
+ .. toctree ::
151
+ :caption: Other Links
152
+
153
+ CircuitPython Reference Documentation <https://circuitpython.readthedocs.io >
154
+ CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60 >
155
+ Discord Chat <https://adafru.it/discord >
156
+ Adafruit Learning System <https://learn.adafruit.com >
157
+ Adafruit Blog <https://blog.adafruit.com >
158
+ Adafruit Store <https://www.adafruit.com >
159
+
160
+ Indices and tables
161
+ ==================
119
162
120
- api
163
+ * :ref: `genindex `
164
+ * :ref: `modindex `
165
+ * :ref: `search `
0 commit comments