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
No EOL
334 B
C

#include "delay.h"
#include "main.h"
#include "display.h"
#include "menu.h"
#include "draw.h"
#include "button.h"
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;
sbit LCDRST =P2^3;
int main()
{
menuInit();
while(1)
{
NOW->f(NOW,opr);
}
}