图像更改

This commit is contained in:
Glz
2024-03-03 16:20:25 +08:00
parent cbbfc278ab
commit 7afd06741b
28 changed files with 456 additions and 1442 deletions

View File

@@ -1,6 +1,5 @@
#include "by_rt_button.h"
#include "zf_common_headfile.h"
#include "by_imu.h"
uint8_t rotate_button;
void by_gpio_init(void)
@@ -25,34 +24,3 @@ uint8_t by_get_rb_status(void)
rotate_button = 0;
return temp_s;
}
void by_ips_show(void)
{
ips200_show_string(0, 0, "button status:");
// ips200_show_uint(104, 0, by_get_rb_status(), 1);
switch (by_get_rb_status()) {
case 1:
ips200_show_string(104, 0, "press");
break;
case 2:
ips200_show_string(104, 0, "up ");
break;
case 3:
ips200_show_string(104, 0, "down ");
break;
default:
ips200_show_string(104, 0, " ");
break;
}
// 按钮
ips200_show_string(0, 16, "imu:");
ips200_show_float(46, 32, eulerAngle.pitch, 3, 2);
ips200_show_float(46, 48, eulerAngle.roll, 3, 2);
ips200_show_float(46, 64, eulerAngle.yaw, 3, 2);
// ips200_show_float(46 , 32, icm_data.gyro_x, 2, 2);
// ips200_show_float(106, 32, icm_data.gyro_y, 2, 2);
// ips200_show_float(166, 32, icm_data.gyro_z, 2, 2);
ips200_show_float(46, 80, imu660ra_temperature, 2, 2);
// printf("%d,%d,%d\n", (int16_t)(icm_data.gyro_x * 10), (int16_t)(icm_data.gyro_y * 10), (int16_t)(icm_data.gyro_z * 10));
}