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

26 lines
281 B
C
Raw Normal View History

2022-04-28 02:00:04 +00:00
#include "delay.h"
#include "main.h"
#include "display.h"
sbit RS = P3 ^ 0;
sbit RW = P3 ^ 1;
sbit E = P3 ^ 2;
sbit CSA = P3 ^ 4;
sbit CSB = P3 ^ 5;
2022-05-05 12:25:59 +00:00
2022-05-05 13:32:33 +00:00
unsigned int line = 0;
2022-04-28 02:00:04 +00:00
int main()
{
2022-05-05 13:32:33 +00:00
init();
clear();
2022-04-28 02:00:04 +00:00
while(1)
2022-05-05 13:32:33 +00:00
{
name(line);
miniclear();
line++;
}
2022-04-28 02:00:04 +00:00
}