资 源 简 介
资源描述#include
#define uchar unsigned char //宏定义
#define uint unsigned int //宏定义
sbit rs=P2^0;
sbit e=P2^1;
sbit key1=P2^2; //四个服务人员的按键
sbit key2=P2^3;
sbit key3=P2^4;
sbit key4=P2^5;
sbit shengyinled=P2^6; //模拟声音
sbit fuwuled=P2^7;
uchar hao[50]="0"; //存储当前需要服务的号码
uchar j=0; // 号码的个数
uchar *quhao=hao;
uchar key=0; //按键值
uchar code table[]="0123456789";
uchar code table1[]="Welcome!";
uchar code table2[]="No.0000->0hao";//用于液晶初始化显示
void delay(uchar z) //延时函数
{
uchar i,j;
for(i=z;i>0;i--)
for(j=110;j>0;j--);
}
void wr