From f1f164f875a20722c9c83b051f95ec3e62263d88 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Mon, 20 Jun 2022 15:13:45 +0200 Subject: [PATCH] examples: Set LSM6DSOX INT pin mode and pull. --- scripts/examples/Arduino/Nano-RP2040/01-Sensors/lsm6dsox_mlc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/examples/Arduino/Nano-RP2040/01-Sensors/lsm6dsox_mlc.py b/scripts/examples/Arduino/Nano-RP2040/01-Sensors/lsm6dsox_mlc.py index a5443fa5f..105b81159 100644 --- a/scripts/examples/Arduino/Nano-RP2040/01-Sensors/lsm6dsox_mlc.py +++ b/scripts/examples/Arduino/Nano-RP2040/01-Sensors/lsm6dsox_mlc.py @@ -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))