51单片机抢答器程序
抢答器 单片机 51 #include unsigned char SData[12]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x8e,0xbf};//0~9,f - unsigned char h; unsigned char j,z=20;//抢答预调时初始值为 20 unsigned char d,y=60;//答题预调时初邕值为 60 sbit beep=P3^6; sbit P1_0=P1^0; sbit P1_1=P1^1; sbit P1_2=P1^2; sbit P1_3=P1^3; sbit P1_4=P1^4; sbit P1_5=P1^5; sbit P1_6=P1^6; sbit P1_7=P1^7; sbit P2_0=P2^0; sbit P2_1=P2^1; sbit P2_2=P2^2; sbit P2_3=P2^3; sbit P3_0=P3^0; sbit P3_1=P3^1; sbit P3_2=P3^2; sbit P3_3=P3^3; sbit P3_4=P3^4; sbit P3_5=P3^5; sbit P3 _6=P3^6; sbit P3_7=P3^7; _6=P3^6; sbit P3_7=P3^7;
用户评论