From 11989a31defdfda2d968167eda9d464d24e050e2 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:25 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/lis3mdl_compass.py | 1 + examples/lis3mdl_data_rate_test.py | 1 + examples/lis3mdl_lsm6ds_test.py | 1 + examples/lis3mdl_range_test.py | 1 + examples/lis3mdl_simpletest.py | 1 + 5 files changed, 5 insertions(+) diff --git a/examples/lis3mdl_compass.py b/examples/lis3mdl_compass.py index 7c8d873..bb143b9 100644 --- a/examples/lis3mdl_compass.py +++ b/examples/lis3mdl_compass.py @@ -8,6 +8,7 @@ import adafruit_lis3mdl i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller sensor = adafruit_lis3mdl.LIS3MDL(i2c) diff --git a/examples/lis3mdl_data_rate_test.py b/examples/lis3mdl_data_rate_test.py index 6c03022..dfaf94a 100644 --- a/examples/lis3mdl_data_rate_test.py +++ b/examples/lis3mdl_data_rate_test.py @@ -9,6 +9,7 @@ from adafruit_lis3mdl import LIS3MDL, Rate, PerformanceMode i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller sensor = LIS3MDL(i2c) current_rate = Rate.RATE_155_HZ diff --git a/examples/lis3mdl_lsm6ds_test.py b/examples/lis3mdl_lsm6ds_test.py index 8459952..380e835 100644 --- a/examples/lis3mdl_lsm6ds_test.py +++ b/examples/lis3mdl_lsm6ds_test.py @@ -20,6 +20,7 @@ from adafruit_lis3mdl import LIS3MDL i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller accel_gyro = LSM6DS(i2c) mag = LIS3MDL(i2c) diff --git a/examples/lis3mdl_range_test.py b/examples/lis3mdl_range_test.py index 68f5fb7..32fe5f5 100644 --- a/examples/lis3mdl_range_test.py +++ b/examples/lis3mdl_range_test.py @@ -8,6 +8,7 @@ from adafruit_lis3mdl import LIS3MDL, Range i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller sensor = LIS3MDL(i2c) while True: diff --git a/examples/lis3mdl_simpletest.py b/examples/lis3mdl_simpletest.py index 4f1f3cd..9c24734 100644 --- a/examples/lis3mdl_simpletest.py +++ b/examples/lis3mdl_simpletest.py @@ -8,6 +8,7 @@ import adafruit_lis3mdl i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller sensor = adafruit_lis3mdl.LIS3MDL(i2c) while True: