From 2716aac666cb56d08a3dc8b96022b8964eae73fb 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/lis3dh_adc.py | 3 ++- examples/lis3dh_simpletest.py | 1 + examples/lis3dh_tap.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/lis3dh_adc.py b/examples/lis3dh_adc.py index cdd829f..cc7e773 100644 --- a/examples/lis3dh_adc.py +++ b/examples/lis3dh_adc.py @@ -21,6 +21,7 @@ lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19) else: i2c = board.I2C() # uses board.SCL and board.SDA + # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c) # Hardware SPI setup: @@ -29,7 +30,7 @@ # lis3dh = adafruit_lis3dh.LIS3DH_SPI(spi, cs) # PyGamer I2C Setup: -# i2c = board.I2C(A) +# i2c = board.I2C(A) # uses board.SCL and board.SDA # lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19) diff --git a/examples/lis3dh_simpletest.py b/examples/lis3dh_simpletest.py index 42b4c4a..f0020dc 100644 --- a/examples/lis3dh_simpletest.py +++ b/examples/lis3dh_simpletest.py @@ -13,6 +13,7 @@ lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19) else: i2c = board.I2C() # uses board.SCL and board.SDA + # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c) # Hardware SPI setup: diff --git a/examples/lis3dh_tap.py b/examples/lis3dh_tap.py index 47569ef..9f4f41a 100644 --- a/examples/lis3dh_tap.py +++ b/examples/lis3dh_tap.py @@ -15,6 +15,7 @@ lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19, int1=int1) else: i2c = board.I2C() # uses board.SCL and board.SDA + # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller int1 = digitalio.DigitalInOut( board.D9 ) # Set this to the correct pin for the interrupt!