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
2022-05-19 21:07:52 +08:00

27 lines
314 B
C

#include "menu.h"
#include "display.h"
#include "delay.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;
}