|
- //这是主程序
- #include "reg52.h"
- #include "lcd.h"
- #include "jie.h"
- typedef unsigned int u16;
- typedef unsigned char u8;
- u8 Disp[]=" Pechin Science ";
- u8 Disp1[]=" jie xia lai ";
- void main(void)
- {
- u8 i;
- LcdInit();
- for(i=0;i<16;i++)
- {
- LcdWriteData(Disp[i]);
- }
- EX0=1;
- EA=1;
- int0=1;
- while(1)
- {
- if(LrValue[2]==0x43)
- {
- LCD1602_E = 0;
- LcdInit();
- for(i=0;i<16;i++)
- {
- LcdWriteData(Disp1[i]);
- }
- sdf();
- }
- }
- }
- //剩下去文件包下载
复制代码
|
|