From 62d5ffa23fd6deb00b5cdc2df37b02e8635d1019 Mon Sep 17 00:00:00 2001 From: "lxbpxylps@126.com" Date: Wed, 20 Oct 2021 16:46:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/Main/main.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/User/Main/main.c b/User/Main/main.c index 29376fd..f0ab8f0 100644 --- a/User/Main/main.c +++ b/User/Main/main.c @@ -14,14 +14,12 @@ #include "GameEngine.h" #include "SD.h" #include "WLAN.h" -#include "Clock.h" #include "APP_Reader.h" #include "APP_Video.h" #include "APP_Plane.h" #include "APP_Setting.h" #include "APP_Weather.h" -#include "APP_Ball.h" #include "APP_Gobang.h" int main(void) @@ -49,18 +47,16 @@ int main(void) HC25_Init(); HC12_Init(); - Clock_Init(); - GE_Draw_ClrAll(WHITE); GE_Draw_Disp(); printf("完成系统初始化\n"); - uint8_t content[7][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", 7, content, NULL)) + switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 6, content, NULL)) { case 1: { @@ -91,20 +87,13 @@ int main(void) break; case 5: - { - GE_Draw_ClrAll(WHITE); - APP_Ball_Launcher(); - } - break; - - case 6: { GE_Draw_ClrAll(WHITE); APP_Gobang_Launcher(); } break; - case 7: + case 6: { GE_Draw_ClrAll(WHITE); APP_Setting_Launcher();