Skip to content

Commit

Permalink
Merge pull request #35 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 22, 2022
2 parents 4811624 + d70920b commit 90889ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/mcp9808_average_temp_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller

# To initialise using the default address:
mcp = adafruit_mcp9808.MCP9808(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/mcp9808_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_mcp9808

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller

# To initialise using the default address:
mcp = adafruit_mcp9808.MCP9808(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/mcp9808_temperature_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import adafruit_mcp9808

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
mcp = adafruit_mcp9808.MCP9808(i2c)

# Change the values according to the desired values
Expand Down

0 comments on commit 90889ba

Please sign in to comment.