C语言编写的基于单片机的计数器程序
write_com(0x01);//显示清屏
for(num=0;num<9;num++) {
write_com(0x80+0x03); delay(5);
write_data(table[num]); delay(5);
}
write_com(0x80+0x41);
delay(5); for(num=0;num<13;num++) { write_data(table1[num]); delay(5);
}
delay(200); delay(200); delay(200); write_com(0x01);//显示清屏 delay(5);
write_com(0x80);