|
發(fā)布時間: 2018-9-21 17:00
正文摘要:源程序 #include <REG51.H> #define uint unsigned int #define uchar unsigned char uchar code DIS_SEG7[]={0xf9,0x92,0xb0,0xf9,0xc0,0xa4,0xf9,0xb0};//設置學號,共陽字形碼 uchar code DIS_BIT[8]={ ... |
|
if(k1==1&&k2==1) delay1ms(1); else { if(k1==0&&k2==1) delay1ms(2); else{ if(k1==1&&k2==0) delay1ms(3); else{ if(k1==0&&k2==0) delay1ms(4); } } } 這個有什么用啊 |