feat: 实现摇一摇导航功能
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user