File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2121 lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c , address = 0x19 )
2222else :
2323 i2c = board .I2C () # uses board.SCL and board.SDA
24+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2425 lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c )
2526
2627# Hardware SPI setup:
2930# lis3dh = adafruit_lis3dh.LIS3DH_SPI(spi, cs)
3031
3132# PyGamer I2C Setup:
32- # i2c = board.I2C(A)
33+ # i2c = board.I2C(A) # uses board.SCL and board.SDA
3334# lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
3435
3536
Original file line number Diff line number Diff line change 1313 lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c , address = 0x19 )
1414else :
1515 i2c = board .I2C () # uses board.SCL and board.SDA
16+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1617 lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c )
1718
1819# Hardware SPI setup:
Original file line number Diff line number Diff line change 1515 lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c , address = 0x19 , int1 = int1 )
1616else :
1717 i2c = board .I2C () # uses board.SCL and board.SDA
18+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1819 int1 = digitalio .DigitalInOut (
1920 board .D9
2021 ) # Set this to the correct pin for the interrupt!
You can’t perform that action at this time.
0 commit comments