C语言编写的基于单片机的计数器程序
write_data(total); delay(5);
break;
case 0xd7:numf--;
total--;
write_com(0x80+0x45); delay(5); write_data(numf); delay(5);
write_com(0x80+0x53); delay(5); write_data(total); delay(5);
break;
case 0xb7:numg--;
total--;
write_com(0x80+0x49); delay(5);
write_data(numg); delay(5);
write_com(0x80+0x53);