1630| 2
|
修改程序,能不能加中断器、计时器、定时器(三选二) |
10黑币
最佳答案#include
#define uint unsigned int
#define uchar unsigned char
sbit led0=P2^2;
sbit buzzer=P2^3;
sbit dula=P2^6; //声明段选线选通端
sbit wela=P2^7; //声明位选线选通端
sbit clear=P3^4;
uchar key,shi,ge,count;
uchar code tab[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71,
0x76,0x79,0x38,0x3f};
uchar k=0;
/*延时子 ...
| ||
| ||
| ||