From 4c3bfa99f45eea841ff958ece4ec9ff06d40e9fb 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/lsm303dlh_mag_compass.py | 1 + examples/lsm303dlh_mag_fast.py | 1 + examples/lsm303dlh_mag_simpletest.py | 1 + 3 files changed, 3 insertions(+) diff --git a/examples/lsm303dlh_mag_compass.py b/examples/lsm303dlh_mag_compass.py index bcf5d1b..c18c1b7 100644 --- a/examples/lsm303dlh_mag_compass.py +++ b/examples/lsm303dlh_mag_compass.py @@ -8,6 +8,7 @@ import adafruit_lsm303dlh_mag 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_lsm303dlh_mag.LSM303DLH_Mag(i2c) diff --git a/examples/lsm303dlh_mag_fast.py b/examples/lsm303dlh_mag_fast.py index 56d4074..05228a0 100644 --- a/examples/lsm303dlh_mag_fast.py +++ b/examples/lsm303dlh_mag_fast.py @@ -7,6 +7,7 @@ import adafruit_lsm303dlh_mag 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_lsm303dlh_mag.LSM303DLH_Mag(i2c) while True: diff --git a/examples/lsm303dlh_mag_simpletest.py b/examples/lsm303dlh_mag_simpletest.py index 1fc5675..34184e3 100644 --- a/examples/lsm303dlh_mag_simpletest.py +++ b/examples/lsm303dlh_mag_simpletest.py @@ -8,6 +8,7 @@ import adafruit_lsm303dlh_mag 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_lsm303dlh_mag.LSM303DLH_Mag(i2c) while True: