将五子棋加入主菜单

This commit is contained in:
lxbpxylps@126.com 2021-10-06 20:42:39 +08:00
parent cc2db4d0a7
commit 43ca4d640c
2 changed files with 21 additions and 3 deletions

View File

@ -339,7 +339,7 @@
<MiscControls></MiscControls>
<Define>USE_HAL_DRIVER, STM32H743xx</Define>
<Undefine></Undefine>
<IncludePath>..\User\Main;..\Core;..\Libraries\HAL_Lib\Inc;..\Libraries\FatFs;..\Libraries\FatFs\drivers;..\System\systick;..\System\sys;..\System\spi;..\System\gpio;..\System\tim;..\System\usart;..\System\adc;..\Hardware\led;..\Hardware\key;..\Hardware\lcd;..\Hardware\sdio;..\Hardware\hc25;..\Hardware\hc12;..\User\GameEngine;..\User\Picture;..\User\SD;..\User\WLAN;..\User\Clock;..\User\APP_Reader;..\User\APP_Video;..\User\APP_Plane;..\User\APP_Weather;..\User\APP_Setting;..\User\APP_JumpMan;..\User\APP_Ball;..\User\FxLib</IncludePath>
<IncludePath>..\User\Main;..\Core;..\Libraries\HAL_Lib\Inc;..\Libraries\FatFs;..\Libraries\FatFs\drivers;..\System\systick;..\System\sys;..\System\spi;..\System\gpio;..\System\tim;..\System\usart;..\System\adc;..\Hardware\led;..\Hardware\key;..\Hardware\lcd;..\Hardware\sdio;..\Hardware\hc25;..\Hardware\hc12;..\User\GameEngine;..\User\Picture;..\User\SD;..\User\WLAN;..\User\Clock;..\User\APP_Reader;..\User\APP_Video;..\User\APP_Plane;..\User\APP_Weather;..\User\APP_Setting;..\User\APP_JumpMan;..\User\APP_Ball;..\User\APP_Gobang;..\User\FxLib</IncludePath>
</VariousControls>
</Cads>
<Aads>
@ -815,6 +815,16 @@
</File>
</Files>
</Group>
<Group>
<GroupName>APP_Gobang</GroupName>
<Files>
<File>
<FileName>APP_Gobang.c</FileName>
<FileType>1</FileType>
<FilePath>..\User\APP_Gobang\APP_Gobang.c</FilePath>
</File>
</Files>
</Group>
<Group>
<GroupName>Fxlib</GroupName>
<Files>

View File

@ -22,6 +22,7 @@
#include "APP_Setting.h"
#include "APP_Weather.h"
#include "APP_Ball.h"
#include "APP_Gobang.h"
int main(void)
{
@ -55,11 +56,11 @@ int main(void)
printf("完成系统初始化\n");
uint8_t content[6][GE_GUI_MENUBOX_CONTENT_LEN] = {"阅读器", "视频播放器", "飞机大战", "天气", "移动球", "设置"};
uint8_t content[7][GE_GUI_MENUBOX_CONTENT_LEN] = {"阅读器", "视频播放器", "飞机大战", "天气", "移动球", "五子棋", "设置"};
while (1)
{
GE_Draw_ClrAll(WHITE);
switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 6, content, NULL))
switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 7, content, NULL))
{
case 1:
{
@ -97,6 +98,13 @@ int main(void)
break;
case 6:
{
GE_Draw_ClrAll(WHITE);
APP_Gobang_Launcher();
}
break;
case 7:
{
GE_Draw_ClrAll(WHITE);
APP_Setting_Launcher();