51单片机设计数码管显示时钟的程序怎么写
51单片机设计数码管显示时钟的程序怎么写
日期:2018-02-03 05:23:23 人气:1
#include#define uchar unsigned charuchar code ledtab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x40};//0-9unsigned char sec=0,min=0,hour=12,scanled;unsigned char key,flashbit,mode,time; unsigned char disdat[8];sbit led=P1^0;void delay(u