Skip to content

Commit fa2a456

Browse files
committed
couple more sphinx fixes
1 parent 42cbf95 commit fa2a456

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ Of course, you must import the library to use it:
5151
import time
5252
5353
All the Adafruit RTC libraries take an instantiated and active I2C object
54-
(from the `busio` library) as an argument to their constructor. The way to
54+
(from the ``busio`` library) as an argument to their constructor. The way to
5555
create an I2C object depends on the board you are using. For boards with labeled
5656
SCL and SDA pins, you can:
5757

5858
.. code:: python
5959
6060
from board import *
6161
62-
You can also use pins defined by the onboard `microcontroller` through the
63-
`microcontroller.pin` module.
62+
You can also use pins defined by the onboard ``microcontroller`` through the
63+
``microcontroller.pin`` module.
6464

6565
Now, to initialize the I2C bus:
6666

@@ -82,8 +82,8 @@ To set the time, you need to set ``datetime`` to a `time.struct_time` object:
8282
rtc.datetime = time.struct_time((2017,1,9,15,6,0,0,9,-1))
8383
8484
After the RTC is set, you retrieve the time by reading the ``datetime``
85-
attribute and access the standard attributes of a struct_time such as `tm_year`,
86-
`tm_hour` and `tm_min`.
85+
attribute and access the standard attributes of a struct_time such as ``tm_year``,
86+
``tm_hour`` and ``tm_min``.
8787

8888
.. code:: python
8989

0 commit comments

Comments
 (0)