Skip to content

Commit fd9e2a0

Browse files
authored
Remove board. in README
`from board import *`, so let's change board.SCL/board.SDA -> SCL/SDA
1 parent e6c6c95 commit fd9e2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Next, initialize the I2C bus object:
4545
.. code-block:: python
4646
4747
from board import *
48-
i2c_bus = busio.I2C(board.SCL, board.SDA, frequency=100000)
48+
i2c_bus = busio.I2C(SCL, SDA, frequency=100000)
4949
5050
Since we have the I2C bus object, we can now use it to instantiate the SGP30 object:
5151

@@ -116,4 +116,4 @@ Now, once you have the virtual environment activated:
116116
117117
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
118118
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
119-
locally verify it will pass.
119+
locally verify it will pass.

0 commit comments

Comments
 (0)