mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Use interrupts instead of polling for main loop
This commit is contained in:
parent
94c2d399b3
commit
965813e8f0
@ -25,6 +25,7 @@ void configureIMU() {
|
|||||||
IMU.setGyroRange(IMU.GYRO_RANGE_2000DPS);
|
IMU.setGyroRange(IMU.GYRO_RANGE_2000DPS);
|
||||||
IMU.setDLPF(IMU.DLPF_MAX);
|
IMU.setDLPF(IMU.DLPF_MAX);
|
||||||
IMU.setRate(IMU.RATE_1KHZ_APPROX);
|
IMU.setRate(IMU.RATE_1KHZ_APPROX);
|
||||||
|
IMU.setupInterrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
void readIMU() {
|
void readIMU() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user