Merge pull request #1670 from openmv/lsm6_update_example

examples: Set LSM6DSOX INT pin mode and pull.
This commit is contained in:
Ibrahim Abdelkader 2022-06-20 15:41:21 +02:00 committed by GitHub
commit af41a9e687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ def imu_int_handler(pin):
INT_FLAG = True
if (INT_MODE == True):
int_pin = Pin(24)
int_pin = Pin(24, mode=Pin.IN, pull=Pin.PULL_UP)
int_pin.irq(handler=imu_int_handler, trigger=Pin.IRQ_RISING)
i2c = I2C(0, scl=Pin(13), sda=Pin(12))