Skip to content

Commit

Permalink
Merge pull request #7 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 authored Nov 22, 2022
2 parents acf8d1f + 2c864b1 commit a6a1ae2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/ltr303_advancedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import adafruit_ltr329_ltr303 as adafruit_ltr303

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

time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
ltr303 = adafruit_ltr303.LTR303(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/ltr303_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from adafruit_ltr329_ltr303 import LTR303

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

time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
ltr303 = LTR303(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/ltr329_advancedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import adafruit_ltr329_ltr303 as adafruit_ltr329

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

time.sleep(0.1) # sensor takes 100ms to 'boot' on power up
ltr329 = adafruit_ltr329.LTR329(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/ltr329_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from adafruit_ltr329_ltr303 import LTR329

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

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

0 comments on commit a6a1ae2

Please sign in to comment.