求一份单片机键盘扫描程序

[复制链接]
查看11 | 回复1 | 2011-11-30 22:38:27 | 显示全部楼层 |阅读模式
#include#define uint unsigned int#define uchar unsigned charsbit dula=P2^6;sbit wela=P2^7;uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};void delay(x) //延时函数{uchar a,b;for(a=x;a>0;a--) for(b=110;b>0;b--);}void xianshi(uchar num)//显示函数{du...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行