@@ -16,4 +16,12 @@ void APP_KEYBOARD_init(window *a_window)
|
||||
void APP_KEYBOARD_loop()
|
||||
{
|
||||
|
||||
|
||||
if(keyboard_window->refresh_windows_flag)
|
||||
{
|
||||
keyboard_window->refresh_windows_flag--;
|
||||
//refresh_windows
|
||||
LCD_ShowString(keyboard_window->x,keyboard_window->y+16,"test",16,CYAN,RED);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ void main_app()
|
||||
//APP_blood_loop();
|
||||
//APP_IDcard_loop();
|
||||
//APP_morsecode_loop();
|
||||
|
||||
APP_KEYBOARD_loop();
|
||||
GEI_BUTTON_CODE(&k1,KEY1);
|
||||
GEI_BUTTON_CODE(&k2,KEY2);
|
||||
GEI_BUTTON_CODE(&k3,KEY3);
|
||||
|
||||
@@ -75,6 +75,7 @@ window *New_Window(UI *ui,uint16_t x,uint16_t y,uint16_t width,uint16_t high,COL
|
||||
temp_window->width=width;
|
||||
temp_window->x=x;
|
||||
temp_window->y=y;
|
||||
temp_window->refresh_windows_flag=2;
|
||||
for(int a=0;a<16;a++)
|
||||
{
|
||||
temp_window->title[a]=title[a];
|
||||
@@ -423,6 +424,7 @@ void UI_Server(UI *ui)
|
||||
temp_window=ui->moveed_windwos;
|
||||
temp_window->x=(t_x-ui->move_x);
|
||||
temp_window->y=(t_y-ui->move_y);
|
||||
temp_window->refresh_windows_flag=1;
|
||||
ui->refresh_ui_flag=1;
|
||||
//发生了变化 刷新ui的显示
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ typedef struct
|
||||
uint16_t high;
|
||||
COLOR_16 background;
|
||||
char title[16];
|
||||
uint8_t refresh_windows_flag;
|
||||
|
||||
|
||||
}window;
|
||||
|
||||
Reference in New Issue
Block a user