add remote source code (#12)

Co-authored-by: jyy <jiangyeying@m5stack.com>
This commit is contained in:
Jiangyy
2026-04-20 16:27:57 +08:00
committed by GitHub
parent dd34f9e0ec
commit 0cb413697b
29 changed files with 10886 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef UI_IMU_SCREEN_H
#define UI_IMU_SCREEN_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lvgl.h"
#include <math.h>
#include <stdio.h>
#include "esp_log.h"
#include "esp_heap_caps.h"
#define MODE_IMU (2)
typedef struct {
float pitch;
float roll;
} IMU_Angle_t;
extern lv_obj_t *imu_screen;
extern lv_obj_t *imu_battery_label;
extern lv_obj_t *imu_channel_info_label;
extern lv_obj_t *imu_id_info_label;
extern lv_obj_t *imu_canvas;
extern lv_obj_t *imu_data_label;
void create_imu_screen(void);
IMU_Angle_t update_imu_screen(float ax, float ay, float az, uint8_t channel, uint8_t id, uint8_t bat);
void update_imu_cube(float ax, float ay, float az);
void ui_imu_screen_destory(void);
#ifdef __cplusplus
}
#endif
#endif