You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install in a virtual environment in your current project:
105
105
@@ -108,7 +108,7 @@ To install in a virtual environment in your current project:
108
108
mkdir project-name &&cd project-name
109
109
python3 -m venv .env
110
110
source .env/bin/activate
111
-
pip3 install Sparkfun-circuitpython-qwiicrelay
111
+
pip3 install sparkfun-circuitpython-qwiicrelay
112
112
113
113
114
114
@@ -141,19 +141,19 @@ Usage Example
141
141
* `CircuitPython on a Raspberry Pi <https://learn.adafruit.com/circuitpython-on-raspberrypi-linux>`_ - Basic information on how to install CircuitPython on a Raspberry Pi.
142
142
* Code Example:
143
143
144
-
.. code-block:: shell
144
+
.. code-block:: shell
145
145
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
149
149
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)
152
152
153
-
relay = QwiicRelay(i2c) # default address is 0x18
153
+
relay = QwiicRelay(i2c) # default address is 0x18
154
154
155
-
# For a different address use QwiicRelay(i2c, address)
156
-
# relay = QwiicRelay(i2c, 0x19)
155
+
# For a different address use QwiicRelay(i2c, address)
0 commit comments