单片机学习——独立按键P1^0
2016-01-20 来源:eefocus
解决方案:(C语言编程)
#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) {
}
上一篇:单片机学习——独立按键之二
下一篇:单片机与单片机之间串口通信问题