C语言编写的基于单片机的计数器程序
total++;
write_com(0x80+0x01); delay(5);
write_data(numa); delay(5);
write_com(0x80+0x53); delay(5);
write_data(total); delay(5);
break;
case 0xde:numb++;
total++;
write_com(0x80+0x05); delay(5);
write_data(numa); delay(5);
write_com(0x80+0x53); delay(5); write_data(total); delay(5);
break;