mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
examples: Set LSM6DSOX INT pin mode and pull.
This commit is contained in:
parent
a77e84192f
commit
f1f164f875
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user