Skip to content

Commit e160b45

Browse files
authored
Merge pull request #12 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 4affe82 + 9c1ab7b commit e160b45

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

examples/tmp117_limits_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_tmp117 import TMP117, AlertMode
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
tmp117 = TMP117(i2c)
1112

examples/tmp117_offset_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_tmp117
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
tmp117 = adafruit_tmp117.TMP117(i2c)
1112

examples/tmp117_rate_and_averaging_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from adafruit_tmp117 import TMP117, AverageCount, MeasurementDelay
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
tmp117 = TMP117(i2c)
1415

1516
# uncomment different options below to see how it affects the reported temperature

examples/tmp117_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_tmp117
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
tmp117 = adafruit_tmp117.TMP117(i2c)
1011

1112
while True:

examples/tmp117_single_measurement_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from adafruit_tmp117 import TMP117, AverageCount
66

77
i2c = board.I2C() # uses board.SCL and board.SDA
8+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
89
tmp117 = TMP117(i2c)
910

1011
# uncomment different options below to see how it affects the reported temperature

0 commit comments

Comments
 (0)