Skip to content

Commit

Permalink
Merge pull request #9 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 28, 2022
2 parents 78f9be0 + 762ea17 commit 0f677d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/htu31d_setting_resolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@


# import htu31d_setting_resolutions
i2c = 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
htu = adafruit_htu31d.HTU31D(i2c)


Expand Down
1 change: 1 addition & 0 deletions examples/htu31d_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import adafruit_htu31d

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
htu = adafruit_htu31d.HTU31D(i2c)
print("Found HTU31D with serial number", hex(htu.serial_number))

Expand Down

0 comments on commit 0f677d9

Please sign in to comment.