实验一 驱动数码管 #include sbit add=P2^0; sbit min=P2^1; sbit beg=P2^2; sbit cs =P2^7; sbit wor=P3^0; unsigned char tab[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; void delay(unsigned char ms) { unsigned int i,j; for(i=0;i9) i=0; } } if(min==0) { delay(10); if(min==0) { while(min==0); i--; if(i<0) i=9; } } return i; } void main () { unsigned
, 相关下载链接:
https://download.csdn.net/download/qq_43934844/85691704?utm_source=bbsseo