Skip to content

Commit a6a1ae2

Browse files
authored
Merge pull request #7 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents acf8d1f + 2c864b1 commit a6a1ae2

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

examples/ltr303_advancedtest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_ltr329_ltr303 as adafruit_ltr303
88

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

1112
time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
1213
ltr303 = adafruit_ltr303.LTR303(i2c)

examples/ltr303_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_ltr329_ltr303 import LTR303
88

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

1112
time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
1213
ltr303 = LTR303(i2c)

examples/ltr329_advancedtest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_ltr329_ltr303 as adafruit_ltr329
88

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

1112
time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
1213
ltr329 = adafruit_ltr329.LTR329(i2c)

examples/ltr329_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_ltr329_ltr303 import LTR329
88

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

1112
time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
1213
ltr329 = LTR329(i2c)

0 commit comments

Comments
 (0)