哦
#include<AT89X52>
#define K1 P2^6
#define B P2^7
#define CSL P3^5
#define SDA P3^4
#define uchar unsigned char
#define uint unsigned int
data uchar com_deta; //将bdata改成了data
sbit h_bit=com_data^7;
sbit l_bit=com_data^0;
uchar code key[4]={0xfe,0xfd,0xfb,0xf7}; //键盘扫描控制信号
uchar data a[13],b[13]; //定义存储密码的数组a,b,c
uchar suzu=0;
uint time=0,relieve=0;
bit biaozi1=0,biaozi2=0,biaozi3=0;我的程序代码! |