电路图源程序#include #include "Delay.h"#include #include #include unsigned int min,sec,i,daoshu;unsigned int a_score=0,b_score=0,cnt=1,a_f=0,b_f=0;unsigned char key;sbit beep=P3^7;void main(){beep=0;i=20;min=12;sec=0;daoshu=24;TMOD=0X01;TH0=(65536-50000)/256;TL0=(65536-50000)%256;EA=1;ET0=1;EX0=1;IT0=1;LCD_Init();while(1){key=MatrixKey();if(key) //矩阵键盘{switch(key){case 1:a_score++;break;case 2:a_score+=2;break;case 3:a_score+=3;break;case 4:TR0=~TR0;break;case...
发表评论取消回复