From 3cf9b1dd06a4708f5441d49e5177433fa663ac9c Mon Sep 17 00:00:00 2001 From: "lxbpxylps@126.com" Date: Wed, 6 Oct 2021 12:21:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=A7=BB=E5=8A=A8=E7=90=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=E6=B7=BB=E5=8A=A0=E8=87=B3=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/Main/main.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/User/Main/main.c b/User/Main/main.c index 25cad0c..23036a2 100644 --- a/User/Main/main.c +++ b/User/Main/main.c @@ -53,17 +53,13 @@ int main(void) HC25_Init(); HC12_Init(); - APP_Ball_Launcher(); - while (1) - ; - Clock_Init(); - uint8_t content[5][GE_GUI_MENUBOX_CONTENT_LEN] = {"阅读器", "视频播放器", "飞机大战", "天气", "设置"}; + uint8_t content[6][GE_GUI_MENUBOX_CONTENT_LEN] = {"阅读器", "视频播放器", "飞机大战", "天气", "移动球", "设置"}; while (1) { GE_Draw_ClrAll(WHITE); - switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 5, content, NULL)) + switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 6, content, NULL)) { case 1: { @@ -94,6 +90,13 @@ int main(void) break; case 5: + { + GE_Draw_ClrAll(WHITE); + APP_Ball_Launcher(); + } + break; + + case 6: { GE_Draw_ClrAll(WHITE); APP_Setting_Launcher();