10 lines
232 B
C
10 lines
232 B
C
#pragma once
|
|
|
|
#include "esp_err.h"
|
|
|
|
typedef void (*imu_sample_cb_t)(float ax_g, float ay_g, float az_g);
|
|
|
|
esp_err_t imu_init(void);
|
|
esp_err_t imu_read_accel(float *ax, float *ay, float *az);
|
|
void imu_start_task(imu_sample_cb_t cb);
|