feat: 完成eeprom及页面ui更新
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "zf_common_headfile.h"
|
||||
#include "page_ui_widget.h"
|
||||
#include "page.h"
|
||||
float ddata0=0.0f;
|
||||
#include "jj_param.h"
|
||||
// #define LINE_HEAD 1
|
||||
// #define LINE_END 7
|
||||
// static int8_t Curser = LINE_HEAD; // 定义光标位置
|
||||
@@ -21,8 +21,10 @@ static void Setup()
|
||||
{
|
||||
ips200_clear();
|
||||
// 显示参数名称
|
||||
ips200_show_string(0, 0, "Dparam");
|
||||
ips200_show_string(20, 18 + 2, "ddata0:");
|
||||
ips200_show_string(0, 0, "Dparam");
|
||||
|
||||
ips200_show_string(20, 18 + 2, (Param_Data[delta_x].text));
|
||||
ips200_show_string(20, 18 + 20, (Param_Data[delta_y].text));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -32,7 +34,6 @@ static void Setup()
|
||||
*/
|
||||
static void Exit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,8 +44,8 @@ static void Exit()
|
||||
static void Loop()
|
||||
{
|
||||
// 刷新参数数值
|
||||
ips200_show_float(80, 18 + 2, ddata0, 4, 5);
|
||||
ddata0+=0.01f;
|
||||
ips200_show_float(90, 18 + 2, *((float *)(Param_Data[delta_x].p_data)), 4, 5);
|
||||
ips200_show_float(90, 18 + 20, *((float *)(Param_Data[delta_x].p_data)), 4, 5);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +56,7 @@ static void Loop()
|
||||
*/
|
||||
static void Event(page_event event)
|
||||
{
|
||||
if (page_event_press_long == event) {
|
||||
if (page_event_press_long == event) {
|
||||
Page_Shift(page_menu);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user