Skip to content

Commit 90889ba

Browse files
authored
Merge pull request #35 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 4811624 + d70920b commit 90889ba

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/mcp9808_average_temp_mqtt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616

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

1920
# To initialise using the default address:
2021
mcp = adafruit_mcp9808.MCP9808(i2c)

examples/mcp9808_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_mcp9808
77

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

1011
# To initialise using the default address:
1112
mcp = adafruit_mcp9808.MCP9808(i2c)

examples/mcp9808_temperature_limits.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import adafruit_mcp9808
1111

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

1516
# Change the values according to the desired values

0 commit comments

Comments
 (0)