C语言编写的基于单片机的计数器程序
}
}
case 0xbb:numg++;
total++;
write_com(0x80+0x49); delay(5);
write_data(numg); delay(5);
write_com(0x80+0x53); delay(5); write_data(total); delay(5);
break;
case 0x7b:init();
break;
while(temp!=0xf0) }
{ }
temp=P3; temp=temp&0xf0;