用单片机控制4位LED数码显示,先从左到右慢速动态扫描显示数字“1357...答:uchar code dis_code_[]={0xf9,0xb0,0x92,0xf8,0xa4,0x99,0x82,0x80,0x88,0x83,0xc6,0xa1,0x86,0x8e,0x89,0x8c};void delay(uint t){ uchar i;while (t--){ for(i=0;i<200;i++);} } void main(){ uchar i,j=0x80;while(1){ for(i=0;i<4;i++){j=_crol_(...
单片机实现4位一体数码管显示0000—FFFF的16进制(C语言编程)答:/*四个数码管的动态显示*/ include<reg52.h> define uint unsigned int define uchar unsigned char sbit du = P2^6;sbit we = P2^7;uchar code table[] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};uint a;//--- void dela...