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 21
21
lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c , address = 0x19 )
22
22
else :
23
23
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
24
25
lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c )
25
26
26
27
# Hardware SPI setup:
29
30
# lis3dh = adafruit_lis3dh.LIS3DH_SPI(spi, cs)
30
31
31
32
# PyGamer I2C Setup:
32
- # i2c = board.I2C(A)
33
+ # i2c = board.I2C(A) # uses board.SCL and board.SDA
33
34
# lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
34
35
35
36
Original file line number Diff line number Diff line change 13
13
lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c , address = 0x19 )
14
14
else :
15
15
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
16
17
lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c )
17
18
18
19
# Hardware SPI setup:
Original file line number Diff line number Diff line change 15
15
lis3dh = adafruit_lis3dh .LIS3DH_I2C (i2c , address = 0x19 , int1 = int1 )
16
16
else :
17
17
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
18
19
int1 = digitalio .DigitalInOut (
19
20
board .D9
20
21
) # Set this to the correct pin for the interrupt!
You can’t perform that action at this time.
0 commit comments