Fix Interrupt pin number
The interrupt is hooked to D6, not D5.
This commit is contained in:
parent
eac551c5de
commit
7ed0661cbd
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import adafruit_lis3dh
|
|||
|
||||
# Set up accelerometer on I2C bus, 4G range:
|
||||
i2c = busio.I2C(board.SCL, board.SDA)
|
||||
int1 = digitalio.DigitalInOut(board.D5)
|
||||
int1 = digitalio.DigitalInOut(board.D6)
|
||||
accel = adafruit_lis3dh.LIS3DH_I2C(i2c, int1=int1)
|
||||
accel.range = adafruit_lis3dh.RANGE_4_G
|
||||
accel.set_tap(1, 100)
|
||||
|
|
|
|||
Loading…
Reference in a new issue