#include "../../hal/imu_hal.h" #include "board.h" #include #include #include // AMOLED-2.06 ships with QMI8658 populated, but the panel is non-square and // mounts in a fixed orientation, so rotation is disabled. We initialize the // device anyway to keep the shared I2C bus healthy, but always report 0. static SensorQMI8658 imu; void imu_hal_init(void) { if (!imu.begin(Wire, QMI8658_L_SLAVE_ADDRESS, IIC_SDA, IIC_SCL)) { Serial.println("QMI8658 init failed"); return; } Serial.println("QMI8658 init OK (rotation disabled on this board)"); } void imu_hal_tick(void) { // No-op — rotation is disabled. } uint8_t imu_hal_rotation_quadrant(void) { return 0; }