单片机学习——独立按键之四
解决方案:(C语言编程)
#include
#include
#define uint unsigned int
#define uchar unsigned char
uchar bai,shi,ge,num;
uint shu;
sbit uk= P1^1;
sbit dk= P1^0;
sbit le=P3^6;
void delay(uint a);
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 display(uchar ba,uchar sh,uchar g)
{
}
void delay(uint a) {
}
单片机独立按 相关文章:
- 一种单片机独立按键检测思路(12-02)
- 关于单片机独立按键的详解(12-01)
- 松翰单片机独立按键(11-30)
- 51单片机学习之5-独立按键和矩阵键盘(11-30)
- 51单片机——独立按键(11-26)
- 单片机学习——独立按键之三(11-23)