Skip to content

Commit 7d2f794

Browse files
author
brentru
committed
switching to import board, instead
1 parent fd9e2a0 commit 7d2f794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Next, initialize the I2C bus object:
4444

4545
.. code-block:: python
4646
47-
from board import *
48-
i2c_bus = busio.I2C(SCL, SDA, frequency=100000)
47+
import board
48+
i2c_bus = busio.I2C(board.SCL, board.SCL, frequency=100000)
4949
5050
Since we have the I2C bus object, we can now use it to instantiate the SGP30 object:
5151

0 commit comments

Comments
 (0)