單片機(jī)學(xué)習(xí)——獨(dú)立按鍵P1^0
解決方案:(C語言編程)
本文引用地址:http://m.butianyuan.cn/article/201611/320183.htm#include
#include
#define uint unsigned int
#define uchar unsigned char
uchar bai,shi,ge,num;
uint shu;
sbit s=P1^0;
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 init()
{
}
void main()
{
}
void time0() interrupt 1
{
}
void display(uchar ba,uchar sh,uchar g)
{
}
void dis()
{
}
void delay(uint a) {
}
評(píng)論