Skip to content

Commit

Permalink
Merge pull request #34 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada committed Nov 21, 2022
2 parents ad51bc3 + 6c2cd36 commit f7ba3ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/si7021_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import adafruit_si7021

# Create library object using our Bus I2C port
sensor = adafruit_si7021.SI7021(board.I2C())
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
sensor = adafruit_si7021.SI7021(i2c)

# If you'd like to use the heater, you can uncomment the code below
# and pick a heater level that works for your purposes
Expand Down

0 comments on commit f7ba3ee

Please sign in to comment.