From 77ed3c8fc9cb2929c59d9fb8103cc0cddb99723f 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/lis2mdl_calibrate.py | 1 + examples/lis2mdl_compass.py | 1 + examples/lis2mdl_interrupt.py | 1 + examples/lis2mdl_simpletest.py | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/lis2mdl_calibrate.py b/examples/lis2mdl_calibrate.py index bb153fc..45babb2 100644 --- a/examples/lis2mdl_calibrate.py +++ b/examples/lis2mdl_calibrate.py @@ -8,6 +8,7 @@ import adafruit_lis2mdl i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller magnetometer = adafruit_lis2mdl.LIS2MDL(i2c) # calibration for magnetometer X (min, max), Y and Z diff --git a/examples/lis2mdl_compass.py b/examples/lis2mdl_compass.py index fc3a50c..c48eb29 100644 --- a/examples/lis2mdl_compass.py +++ b/examples/lis2mdl_compass.py @@ -9,6 +9,7 @@ import adafruit_lis2mdl 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_lis2mdl.LIS2MDL(i2c) # You will need the calibration values from your magnetometer calibration diff --git a/examples/lis2mdl_interrupt.py b/examples/lis2mdl_interrupt.py index a404ea4..caffb20 100644 --- a/examples/lis2mdl_interrupt.py +++ b/examples/lis2mdl_interrupt.py @@ -6,6 +6,7 @@ import adafruit_lis2mdl i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller lis = adafruit_lis2mdl.LIS2MDL(i2c) lis.interrupt_threshold = 80 lis.interrupt_enabled = True diff --git a/examples/lis2mdl_simpletest.py b/examples/lis2mdl_simpletest.py index 8835fc1..03e360b 100644 --- a/examples/lis2mdl_simpletest.py +++ b/examples/lis2mdl_simpletest.py @@ -8,6 +8,7 @@ import adafruit_lis2mdl 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_lis2mdl.LIS2MDL(i2c) while True: