feat: 增加直道和角点标志显示
This commit is contained in:
@@ -24,10 +24,14 @@ static int8_t Curser_Last = LINE_HEAD; // 定义光标位置
|
||||
static void Setup()
|
||||
{
|
||||
ips200_clear();
|
||||
Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
|
||||
// Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
|
||||
|
||||
ips200_show_string(5, 165, "pts_l:");
|
||||
ips200_show_string(5, 185, "pts_r:");
|
||||
ips200_show_string(5, 205, "con_l:");
|
||||
ips200_show_string(5, 224, "con_r:");
|
||||
ips200_show_string(100, 165, "dir_l:");
|
||||
ips200_show_string(100, 185, "dir_r:");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -49,6 +53,10 @@ static void Loop()
|
||||
Show_Marked_Image();
|
||||
ips200_show_uint(60, 165, pts_inv_l_count, 3);
|
||||
ips200_show_uint(60, 185, pts_inv_r_count, 3);
|
||||
ips200_show_uint(60, 205, Lpt0_found, 3);
|
||||
ips200_show_uint(60, 224, Lpt1_found, 3);
|
||||
ips200_show_uint(160, 165, is_straight0, 3);
|
||||
ips200_show_uint(160, 185, is_straight1, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,9 +70,9 @@ static void Event(page_event event)
|
||||
Curser_Last = Curser;
|
||||
|
||||
if (page_event_forward == event) {
|
||||
Curser--; // 光标上移
|
||||
// Curser--; // 光标上移
|
||||
} else if (page_event_backward == event) {
|
||||
Curser++; // 光标下移
|
||||
// Curser++; // 光标下移
|
||||
} else if (page_event_press_short == event) {
|
||||
|
||||
} else if (page_event_press_long == event) {
|
||||
@@ -77,7 +85,7 @@ static void Event(page_event event)
|
||||
Curser = LINE_HEAD;
|
||||
}
|
||||
|
||||
Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
|
||||
// Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user