Fix Interrupt pin number

The interrupt is hooked to D6, not D5.
This commit is contained in:
daniel-stewart 2019-07-15 13:52:41 -04:00 committed by GitHub
parent eac551c5de
commit 7ed0661cbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)