04 2021 档案

摘要:实验要求: 要求通过中断方式检测有无按键 判断哪个按键(编号0-9),并且在数码管上显示对应的0-9 代码部分 #include<reg51.h> char led_mod[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; char key 阅读全文
posted @ 2021-04-28 22:25 、晚风、 阅读(420) 评论(4) 推荐(0) 编辑
摘要:源码 #include<reg51.h> unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; unsigned char second=0; bit a=0; char t=0; int0_s 阅读全文
posted @ 2021-04-24 20:53 、晚风、 阅读(520) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示