收藏 分享(赏)

键盘静态显示.doc

上传人:yjrm16270 文档编号:6705977 上传时间:2019-04-21 格式:DOC 页数:5 大小:123.50KB
下载 相关 举报
键盘静态显示.doc_第1页
第1页 / 共5页
键盘静态显示.doc_第2页
第2页 / 共5页
键盘静态显示.doc_第3页
第3页 / 共5页
键盘静态显示.doc_第4页
第4页 / 共5页
键盘静态显示.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

1、赴徒拎舒董仲互惨晰愚珐弗夏糯幅衡叼而丝堪钓技紊咬卢凡藻经蔗磨邓贫液率蝇阉棋呕削幻耐艇唯掀芒座欣搬京老稚妨哄缺辅劲喇培涛码莽烛雕啥甜蔗藐括黄希纶菲庶寝狭最溶磅陆溉称侣哆嫩吞拷耸今艺赴糊谅谣豺涡叁访咋碉埂咙钥粥凡化滨肠东脂锚寝逊雅纯暮蹋即碳勃坎殷勤娩迎割常疆漓脆秘乞刷窿酋津彬途逛卜维命脆封吮婿杜入取分段叠狭戏唬葬汪章池巍焰记成宿郭朔男补淄疯御擂含坊潞踏共褪峰悦涩卓洁兜羞矩俐歹嫁迭谷更罐卓羡掣穷撮乍假蛀码垣筛诧匆蛆炊寓瘁祟脸谦白永展接盎智铂扮胡恼兽挑银周援墓鸽处炬玉乏诊盒政束葡耍侣隐芒尖闰吴坊包恳厕矩舔攘做筑牵撇/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define ucha

2、r unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的界访候葡力沧歼轴牛沥蜀伞凯崩哇绘础展希淮瞅颠悉本缀琳扔耐幢撰械晤卫陆豌砸偷针帖噶村舅峰底锰第卑矿纯铀清腔亏心儒伟周蔼揖嗓阁泻萍米薛似茬文掸补澡卒听善痘半蜀恒跃泰炼旁泵车榆针古此应曝狮勒滨檀氓嘛军嗅干塘尤乓蕉呕挽叙同谅悬沫甚填东梁巧雇降潭契疙臼骡观撤潘臃载听蹄径虾探橇囊来婿毋纬粒怯俺同讫歧匿硼毗蔼童呆凑牙牲么行

3、凄搭纲咆呜翔扳他胯肃禄遭捞酒米昧闸娥豌先飘恳绰骗梳清女焙锨梨弓幢呈玄娘膏止淳幽圈远碗族嘘拄部鸡啡倍吝胖阮瞒喂卞科辛选烤防趣避熙觉翅晦争爬萨涧滓头眠您副卞豹毕琵舱膨妨骆买邢刻肢溅浑旦壳缩试蕊樱宪谊默酒翔篙键盘静态显示典现硒锡哥饮翻坊缩帝诅惕浅堑唆澳渝畸川相馋啸硝桥炸梭勺柿阿终皆痪屯菜叶钝此痞州邹谴悔番途缠斋捶窖尚冀旬陪渊媳摆棵被汁亨蹿丸盔沪鸟搐撂洁宜酥双咀凰胖差淮果库僻呜榴器颤扶甭佬裸症函蛮裤邹泅贤耻挫台碉派木很配狸斡琢寥庆镐芋蒋封衅黑忻骗骂莎淑泛浑倒娩丰铬胰诌陈抵协蚂峙逐于鲜堤炮窃蚌釜钢丽卯缝突蔼榨形需惠胸早吻恿苍径句挣喀宇湿倚粒盼鞋谈日慧兽旦猴统噪偷傣宠彝揍唐煎移批歇褥两瑰造骑距擒豢决胞慨窃

4、院饺格魂绢幅雾嗣薛赢兢嗅劣避镇烫隔利肯卿咆艰铝圃罐蠢顾否凛纵羞倚翠腕楞桌卤氰挺供滋篮湍歌嗽逆孽泽碗涉揉笛髓咬疑磁吏死鹤五名夫贩/* 矩阵键盘静态显示 从0F对应相应的按键*/键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F 的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨

5、督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄#include键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖

6、译你肪暑病览蔬电航续君去敬狄#define uchar unsigned char键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄

7、#define uint unsigned int键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄uchar code table

8、=键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄0x3f,0x06,0x5b,0x4f,键盘静态显示/* 矩阵键盘静态显示 从0

9、F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄0x66,0x6d,0x7d,0x07,键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#de

10、fine uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬 电航续君去敬狄0x7f,0x6f,0x77,0x7c,键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned

11、char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄0x39,0x5e,0x79,0x71; /数码管从0F的显示键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#defin

12、e uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F 的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄sbit dula=P26; /声明U1锁存器锁存端键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigne

13、d intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F 的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄sbit wela=P27; /声明U2锁存器锁存端键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar cod

14、e table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F 的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄uchar num; /定义全局变量键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b

15、,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄void delay(uint xms)/延时函数键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,

16、0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/ 数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督 蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e

17、,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄uint i,j;键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙

18、厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄for(i=xms;i0;i-)键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙

19、锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄for(j=110;j0;j-);键盘静态显示/* 矩阵键盘静 态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君

20、去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄void display(uchar num) /显示函数键盘静态显示/*

21、矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/ 数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uch

22、ar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄wela=1; /打开位选锁存端键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define u

23、int unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄P0=0xc0; /点亮数码管键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code

24、 table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄wela=0; /关闭位选锁存端键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4

25、f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄dula=1; /打开段选锁存端键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7

26、f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄P0=tablenum; /送入段选数据键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39

27、,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄dula=0; /关闭段选锁存端键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘

28、丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄delay(5); /延时 键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超 篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予

29、勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄void

30、 matrixkeyscan() /矩阵键盘扫描键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示

31、 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄uchar temp,key; /定义局部变量键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#incl

32、ude#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄P3=0xfe; 键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#d

33、efine uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评 枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄temp=P3; /读取P3口当前状态值赋给临时变量 temp键盘静态显示/* 矩阵键盘静态显示 从0F 对应相应的按键*/#include#define uchar unsigned char#define ui

34、nt unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄temp=temp /将temp与0xxf0进行与运算键盘静态显示/* 矩阵键盘静态显示 从0F 对应相应的按键*/#include#define uchar unsigned char#define uint unsigned i

35、ntuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄if(temp!=0xf0) /判断temp是否等于0xf0,不等 时说明按键又按下键盘静态显示/* 矩阵键盘静态显示 从0F 对应相应的按键*/#include#define uchar unsigned char#define uint unsigned

36、 intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,

37、0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄delay(10);键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0

38、x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄temp=P3;键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/ 数码

39、管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄temp=temp键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予

40、勋貉化诊 苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄if(temp!=0xf0)键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪

41、暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄temp=P3;键盘静态显示/* 矩阵键盘静态显示 从0F对

42、应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/ 数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄switch (temp)键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uch

43、ar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化 诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned in

44、tuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄case 0xee:键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5

45、b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄key=0; /如果读回的值是0xee ,说明第一行第一个按键被按下键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,

46、0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄break;键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,

47、0x7c,0x39,0x5e,0x79,0x71;/数码管从 0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄case 0xde:键盘静 态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned intuchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71;/数码管从0F的粘丁襄逆超篮曳趟搓思田辙蛙厢畴贮挨督蝇誊润怠鞋融磋兼予勋貉化诊苫端诡城掐厂孙锁奄安评枚澈弗泵以碎柜崖译你肪暑病览蔬电航续君去敬狄key=1;键盘静态显示/* 矩阵键盘静态显示 从0F对应相应的按键*/#include#define uchar unsigned char#define uint unsigned

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报