Skip to content

Commit 47ce2ca

Browse files
authored
Merge pull request #15 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 7469f0c + 444f8d2 commit 47ce2ca

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/ltr390_alert_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
THRESHOLD_VALUE = 100
1010

11-
i2c = board.I2C()
11+
i2c = board.I2C() # uses board.SCL and board.SDA
12+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1213
ltr = LTR390(i2c)
1314

1415
ltr.high_threshold = THRESHOLD_VALUE

examples/ltr390_configuration_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import board
88
from adafruit_ltr390 import LTR390, MeasurementDelay, Resolution, Gain
99

10-
i2c = board.I2C()
10+
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
ltr = LTR390(i2c)
1213

1314
# ltr.resolution = Resolution.RESOLUTION_16BIT

examples/ltr390_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import board
66
import adafruit_ltr390
77

8-
i2c = board.I2C()
8+
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
ltr = adafruit_ltr390.LTR390(i2c)
1011

1112
while True:

0 commit comments

Comments
 (0)