资 源 简 介
//S2键调整小时,S3键调整分钟
#include
#include
unsigned char data dis_digit;
unsigned char key_s, key_v;
unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,
0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
unsigned char data dis_buf[8];
unsigned char data dis_index;
unsigned char hour,min,sec;
unsigned char sec100;
sbit K1 = P3^4;
sbit K2 = P3^5;
sbit dula=P2^6;
sbit wela=P2^7;
bit scan_key();
void proc_key();
void inc_sec();
void inc_min();
void inc_hour();
//void display();
void delay(unsigned char ms);
void display1(unsigned char a1,unsigned char a2,unsigned char a3,unsigned char a4,unsigned ch