This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/MCU/MCU_REAL _FINAL/menu.c

36 lines
417 B
C
Raw Normal View History

2022-05-19 13:07:52 +00:00
#include "menu.h"
#include "display.h"
#include "delay.h"
2022-05-25 07:12:42 +00:00
#include "draw.h"
Menu M_MAINMANU;//<2F><><EFBFBD>˵<EFBFBD>
Menu M_PLAYMODE1; //<2F><><EFBFBD><EFBFBD>˹<EFBFBD><CBB9><EFBFBD><EFBFBD>
2022-05-19 13:07:52 +00:00
Menu* NOW; //<2F><>ǰ<EFBFBD>˵<EFBFBD>ָ<EFBFBD><D6B8>
2022-05-25 07:12:42 +00:00
//<2F><>ʼ<EFBFBD>˵<EFBFBD>
void m_startup(struct _menu* this,enum OPR opr)
2022-05-19 13:07:52 +00:00
{
displayInit();
clear();
drawNAME();
delay(1000);
drawNUMBER();
delay(3000);
// clear();
2022-05-19 13:07:52 +00:00
NOW=this->n;
}
Menu M_STARTUP={&M_MAINMANU,m_startup};
void menuInit()
{
NOW=&M_STARTUP;
}