能帮我详细解释下该程序,我是初学者,#include#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //0到fuchar keyval;uint x;void delay(uchar a){uchar i,j;for(i=0;i
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/31 10:19:02
![能帮我详细解释下该程序,我是初学者,#include#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //0到fuchar keyval;uint x;void delay(uchar a){uchar i,j;for(i=0;i](/uploads/image/z/9491689-1-9.jpg?t=%E8%83%BD%E5%B8%AE%E6%88%91%E8%AF%A6%E7%BB%86%E8%A7%A3%E9%87%8A%E4%B8%8B%E8%AF%A5%E7%A8%8B%E5%BA%8F%2C%E6%88%91%E6%98%AF%E5%88%9D%E5%AD%A6%E8%80%85%2C%23include%23define+uchar+unsigned+charuchar+tab%5B%5D%3D%7B0x3f%2C0x06%2C0x5b%2C0x4f%2C0x66%2C0x6d%2C0x7d%2C0x07%2C0x7f%2C0x6f%2C0x77%2C0x7c%2C0x39%2C0x5e%2C0x79%2C0x71%7D%3B+%2F%2F0%E5%88%B0fuchar+keyval%3Buint+x%3Bvoid+delay%28uchar+a%29%7Buchar+i%2Cj%3Bfor%28i%3D0%3Bi)
能帮我详细解释下该程序,我是初学者,#include#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //0到fuchar keyval;uint x;void delay(uchar a){uchar i,j;for(i=0;i
能帮我详细解释下该程序,我是初学者,
#include
#define uchar unsigned char
uchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //0到f
uchar keyval;
uint x;
void delay(uchar a)
{
uchar i,j;
for(i=0;i
能帮我详细解释下该程序,我是初学者,#include#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; //0到fuchar keyval;uint x;void delay(uchar a){uchar i,j;for(i=0;i
这是矩阵键盘的逐行扫描法,先给P3口0x0f,再判断p3口还等于0x0f不,延时是为了去抖,再判断一次看按键是否还按下,如果按着,就取出键码,最后把键码组合,返回键码