feat:增加圆环参数

This commit is contained in:
2024-06-07 21:55:55 +08:00
parent 5dd6ddd802
commit 81f0e13eae
13 changed files with 354 additions and 199 deletions

View File

@@ -5,13 +5,14 @@
#include "jj_blueteeth.h"
#define LINE_HEAD 1
#define LINE_END 5
#define LINE_END 4
static char Text[] = "Menu";
static int8_t Curser = LINE_HEAD; // 定义光标位置
static int8_t Curser_Last = LINE_HEAD; // 定义光标位置
uint32_t cnt = 0;
uint32_t cnt = 0;
uint8_t go_flag = 0;
uint32_t reset[3];
static void Print_Menu_p(void);
/***************************************************************************************
@@ -30,7 +31,7 @@ static void Setup()
ips200_clear();
Print_Menu_p();
Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
reset[0]=0x01;
reset[0] = 0x01;
}
/**
@@ -49,6 +50,14 @@ static void Exit()
*/
static void Loop()
{
if (go_flag == 1) {
system_delay_ms(1000);
bt_fly_flag = 1;
system_delay_ms(1000);
bt_run_flag = 1;
go_flag = 0;
}
}
/**
@@ -70,21 +79,8 @@ static void Event(page_event event)
Page_Shift(Curser); // 切换到光标选中的页面
}
} else if (page_event_press_long == event) {
if(cnt==0)
{
by_frame_send(reset);
cnt=1;
}
else if(cnt==1)
{
cnt=2;
bt_fly_flag=1;
}else if(cnt==2)
{
cnt=0;
bt_run_flag=1;
}
go_flag = 1;
ips200_clear();
}
if (Curser < LINE_HEAD) {