Skip to content

Commit 067999d

Browse files
authored
Update README example.
I was struggling with the example, then I realized that busio.I2C has the following signature: `busio.I2C(scl, sda, *, frequency=400000)`.
1 parent 374a660 commit 067999d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Next, initialize the I2C bus object:
7070
.. code-block:: python
7171
7272
import board
73-
i2c_bus = busio.I2C(board.SCL, board.SCL, frequency=100000)
73+
i2c_bus = busio.I2C(board.SCL, board.SDA frequency=100000)
7474
7575
Since we have the I2C bus object, we can now use it to instantiate the SGP30 object:
7676

0 commit comments

Comments
 (0)