用C语言编写AT89C51单片机程序,设计一个智能数字钟。答:void delay(int); //延时 //***彩灯的 uchar light[24]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0x7e,0xbd,0xdb,0xe7,0xe7,0xdb,0xbd,0x7e};int n,m=6,h;void go();//===主函数===...
请高人帮我看看51单片机写的关于数码显示时钟的C语言程序答:0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};void delay(uint z); //延时程序声明 void init(void);//初始化程序声明 void display(uchar n1 ,uchar n2,uchar n3,uchar n4); //显示程序声明 void main() //主程序 { init(); //调用初始化程序 while(1) //进入大循环 { if(aa=...
用C语言编写AT89C51单片机程序,设计一个智能数字钟。答://0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40};//0-F,-,共阴 uchar code table_d[]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef}; //0~9数组,带小数点 uchar table1[]={31,31,29,31,30,31,30,31,31,30,31,30,31}; //闰年 uchar table2[...