本帖最后由 nimashiwoer 于 2017-5-6 23:27 编辑
#include<reg51.h>
#define uint unsigned int
#define uchar unsigned char
sbit k3=p3^4;//清零键
sbit beep=p1^0;
uchar code duan[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F,0x00};//共阴极数码管编码
uchar code wei[]={0x07,0x0b,0x0d,0x0e};
uchar data buffer_counts[]={0,0,0,0};
uint count=0;
|