逐个亮“从一开始变换” #include #include void delay(unsigned int a) { unsigned int b; b=a; while(b>0) b--; } void main() { unsigned int i,j; unsigned code A[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d, 0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};//0x3f:为0,即数码管亮“0”。 P2=0;//打开数码管的第一个, P0