2979| 4
|
兩位數碼管計算時間,我這個是兩按鍵實現開始,暫停和清零,求大佬改成一個按鍵的 |
15黑幣
最佳答案#include
#define uchar unsigned char
#define uint unsigned int
unsigned char code table[16]={0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,0x80, 0x90, 0x88, 0x83, 0xc6, 0xa1, 0x86, 0x8e};
uchar i=0,temp,flag;
sbit S1 = P2^0;
sbit S2 = P2^1;
sbit K1 = P3^6;
sbit K2 = P3^7;
uchar Time=0;
uchar mode=0;
void Delay_1ms(uint i)//1msÑóê±
{
uc ...
| ||
| ||