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!