帮我改成4*4矩阵键盘控制 4位共阴极数码管显示! 51单片机答:include<reg51.h>#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //0到fuchar keyval;uint x;void delay(uchar a){ uchar i,j; for(i=0;i<a;i++) for(j=0;j<125;j++);}uchar kb...
用89C52单片机共阴极, 让数码管第一第二位间隔500ms从0显示到20,然后...答:include<reg51.h>#define uchar unsigned char;uchar distab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; //0到fuchar number,dat,time=0;bit flag=0;void t0isr() interrupt 1{TH0=(65536-5000)/256;TL0=(65536-5000)...