keil代码
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uchar data buf[6]; //对应里程表里的6位
unsigned long int count=0; //里程的计数
bit button; //实现里程的启动和清零
uchar code table[]={
0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
void delay(uint d)
{
uchar i,j