Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
switching to import board, instead
  • Loading branch information
brentru committed Aug 31, 2018
commit 7d2f794867b806471f341dd240848353b8bd829b
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Next, initialize the I2C bus object:

.. code-block:: python

from board import *
i2c_bus = busio.I2C(SCL, SDA, frequency=100000)
import board
i2c_bus = busio.I2C(board.SCL, board.SCL, frequency=100000)

Since we have the I2C bus object, we can now use it to instantiate the SGP30 object:

Expand Down