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/main.c

27 lines
334 B
C
Raw Normal View History

2022-05-19 13:07:52 +00:00
#include "delay.h"
#include "main.h"
#include "display.h"
#include "menu.h"
2022-05-25 07:12:42 +00:00
#include "draw.h"
#include "button.h"
2022-05-19 13:07:52 +00:00
extern Menu *NOW;
enum OPR opr=idle;
sbit RS = P2 ^ 0;
sbit RW = P2 ^ 1;
sbit E = P2 ^ 2;
sbit CSA = P2 ^ 4;
sbit CSB = P2 ^ 5;
2022-05-19 13:07:52 +00:00
sbit LCDRST =P2^3;
2022-05-19 13:07:52 +00:00
int main()
{
menuInit();
2022-05-19 13:07:52 +00:00
while(1)
{
NOW->f(NOW,opr);
2022-05-19 13:07:52 +00:00
}
2022-05-19 13:07:52 +00:00
}