examples: Set LSM6DSOX INT pin mode and pull.

This commit is contained in:
iabdalkader 2022-06-20 15:13:45 +02:00
parent a77e84192f
commit f1f164f875

View File

@ -16,7 +16,7 @@ def imu_int_handler(pin):
INT_FLAG = True INT_FLAG = True
if (INT_MODE == 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) int_pin.irq(handler=imu_int_handler, trigger=Pin.IRQ_RISING)
i2c = I2C(0, scl=Pin(13), sda=Pin(12)) i2c = I2C(0, scl=Pin(13), sda=Pin(12))