34 lines
363 B
C
34 lines
363 B
C
#include "menu.h"
|
|
#include "display.h"
|
|
#include "delay.h"
|
|
#include "draw.h"
|
|
|
|
Menu M_MAINMANU;
|
|
|
|
|
|
|
|
|
|
Menu* NOW; //现在菜单指针
|
|
|
|
|
|
|
|
|
|
|
|
//初始菜单
|
|
void m_startup(struct _menu* this)
|
|
{
|
|
displayInit();
|
|
clear();
|
|
drawNAME();
|
|
delay(1000);
|
|
drawNUMBER();
|
|
delay(3000);
|
|
clear();
|
|
NOW=this->n;
|
|
}
|
|
Menu M_STARTUP={&M_MAINMANU,m_startup};
|
|
|
|
void menuInit()
|
|
{
|
|
NOW=&M_STARTUP;
|
|
}
|