imu_mouse.h 305 B

12345678910111213141516
  1. #pragma once
  2. #include "sensors/ICM42688P.h"
  3. typedef enum {
  4. ImuMouseKeyRight,
  5. ImuMouseKeyLeft,
  6. } ImuMouseKey;
  7. typedef struct ImuThread ImuThread;
  8. ImuThread* imu_start(ICM42688P* icm42688p);
  9. void imu_stop(ImuThread* imu);
  10. void imu_mouse_key_press(ImuThread* imu, ImuMouseKey key, bool state);