From 89181eaf29a7f2c49f6dc261814d9c248bd76162 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:26 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/ltr390_alert_test.py | 3 ++- examples/ltr390_configuration_example.py | 3 ++- examples/ltr390_simpletest.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/ltr390_alert_test.py b/examples/ltr390_alert_test.py index db33f16..fbd3c76 100644 --- a/examples/ltr390_alert_test.py +++ b/examples/ltr390_alert_test.py @@ -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 diff --git a/examples/ltr390_configuration_example.py b/examples/ltr390_configuration_example.py index c07a494..fd382af 100644 --- a/examples/ltr390_configuration_example.py +++ b/examples/ltr390_configuration_example.py @@ -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 diff --git a/examples/ltr390_simpletest.py b/examples/ltr390_simpletest.py index 2efcfbe..51d0156 100644 --- a/examples/ltr390_simpletest.py +++ b/examples/ltr390_simpletest.py @@ -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: