Skip to content

Commit 03bf5d1

Browse files
committed
Fix formatting in Readme
1 parent 7db106d commit 03bf5d1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ To install for current user:
9393

9494
.. code-block:: shell
9595
96-
pip3 install Sparkfun-circuitpython-qwiicrelay
96+
pip3 install sparkfun-circuitpython-qwiicrelay
9797
9898
To install system-wide (this may be required in some cases):
9999

100100
.. code-block:: shell
101101
102-
sudo pip3 install Sparkfun-circuitpython-qwiicrelay
102+
sudo pip3 install sparkfun-circuitpython-qwiicrelay
103103
104104
To install in a virtual environment in your current project:
105105

@@ -108,7 +108,7 @@ To install in a virtual environment in your current project:
108108
mkdir project-name && cd project-name
109109
python3 -m venv .env
110110
source .env/bin/activate
111-
pip3 install Sparkfun-circuitpython-qwiicrelay
111+
pip3 install sparkfun-circuitpython-qwiicrelay
112112
113113
114114
@@ -141,19 +141,19 @@ Usage Example
141141
* `CircuitPython on a Raspberry Pi <https://learn.adafruit.com/circuitpython-on-raspberrypi-linux>`_ - Basic information on how to install CircuitPython on a Raspberry Pi.
142142
* Code Example:
143143

144-
.. code-block:: shell
144+
.. code-block:: shell
145145
146-
# import the CircuitPython board and busio libraries
147-
import board
148-
import busio
146+
# import the CircuitPython board and busio libraries
147+
import board
148+
import busio
149149
150-
# Create bus object using the board's I2C port
151-
i2c = busio.I2C(board.SCL, board.SDA)
150+
# Create bus object using the board's I2C port
151+
i2c = busio.I2C(board.SCL, board.SDA)
152152
153-
relay = QwiicRelay(i2c) # default address is 0x18
153+
relay = QwiicRelay(i2c) # default address is 0x18
154154
155-
# For a different address use QwiicRelay(i2c, address)
156-
# relay = QwiicRelay(i2c, 0x19)
155+
# For a different address use QwiicRelay(i2c, address)
156+
# relay = QwiicRelay(i2c, 0x19)
157157
158158
Contributing
159159
============

0 commit comments

Comments
 (0)