#include ﻩ#d ef i n e u c har u ns i g ned c ha r #define ui n t unsigned int sbit KEY 1 = P3^4;sbit K EY2 = P3^5;sbit K E Y3 = P3^6;sbit IN1 = P1^0;sbi t IN2 = P1^1;sb i t EN A = P1^2;s fr ld a ta=0x80;sb it d ula=P 2^6;s b i t wela=P 2^7;//s b i t lcd en=P 3^4;//u ch ar timer,m s,t_se t = 1;u ch a r T_N=1 00;uchar T_N 1=1 0 0;uc h ar T_H_N=50;ucha r T_H_N1=50;v o i d msp l ay(ucha r,uchar);uch ar c o d e x1[]={0x3 f,0x 0 6,0 x5b,0 x 4f,0x6 6,0 x 6 d,0 x 7d,0x27,0x 7f,0 x6f,0x77,0x7c,0 x39,0x5e,0 x 79,0 x 7 1};//ucha r code x2[ ] ={0xc 0 ,0 x f 9, 0 xa4,0x b 0 , 0x99, 0 x 92,0x82,0xd8 , 0x 80,0x90,0x88,0x83,0 xc6,0 x a1,0x 86,0x 8 e};uch ar co d e x 3[]={0xfe,0x f d,0xfb,0xf7,0 xef,0xd f};//uchar co d eﻩx 4[]={0x0 1,0x02,0x04,0x08,0 x 1 0,0 x20};v o id delay(u i nt z)ﻩ//延时函数{uint x;ﻩfo r(