Skip to content

Commit 19b32e1

Browse files
authored
Merge pull request #9 from brentru/patch-1
Remove board. in README
2 parents e6c6c95 + 7d2f794 commit 19b32e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

+3-3
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(board.SCL, board.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

@@ -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)