Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/ltr390_alert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

THRESHOLD_VALUE = 100

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

ltr.high_threshold = THRESHOLD_VALUE
Expand Down
3 changes: 2 additions & 1 deletion examples/ltr390_configuration_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import board
from adafruit_ltr390 import LTR390, MeasurementDelay, Resolution, Gain

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

# ltr.resolution = Resolution.RESOLUTION_16BIT
Expand Down
3 changes: 2 additions & 1 deletion examples/ltr390_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import board
import adafruit_ltr390

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

while True:
Expand Down