單片機(jī)學(xué)習(xí)——獨(dú)立按鍵之三
解決方案:(C語(yǔ)言編程)
#include
#include
#define uint unsigned int
#define uchar unsigned char
uchar bai,shi,ge,num,temp;
uint shu;
sbit le=P3^6;
void delay(uint a);
void dis();
void display(uchar ba,uchar sh,uchar g);
uchar code tabledu[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,
0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,0x89,0x86,0xc7,0xc7,0xc0,0xff};
uchar code tablewe[]={0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void main()
{
}
void display(uchar ba,uchar sh,uchar g)
{
}
void delay(uint a) {
}
評(píng)論