From 965813e8f05a815b994821759a30eda2048c38a5 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Mon, 5 May 2025 13:58:23 +0300 Subject: [PATCH] Use interrupts instead of polling for main loop --- flix/imu.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/flix/imu.ino b/flix/imu.ino index 3c6f2fc..0cf6139 100644 --- a/flix/imu.ino +++ b/flix/imu.ino @@ -25,6 +25,7 @@ void configureIMU() { IMU.setGyroRange(IMU.GYRO_RANGE_2000DPS); IMU.setDLPF(IMU.DLPF_MAX); IMU.setRate(IMU.RATE_1KHZ_APPROX); + IMU.setupInterrupt(); } void readIMU() {