C51单片机矩阵键盘实现
#include<reg52.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit DU = P2^6;
sbit WE = P2^7;
uint keyvalue = 13;
//1 2 3 A
uchar code table[]={ 0x06, 0x5b, 0x4f, 0x77,
//4 5 6 B
0x66, 0x6d,
原创
2020-10-08 15:53:44 ·
1809 阅读 ·
0 评论