一键流水灯分步循环

上传人:第*** 文档编号:38762893 上传时间:2018-05-07 格式:PDF 页数:4 大小:119.79KB
返回 下载 相关 举报
一键流水灯分步循环_第1页
第1页 / 共4页
一键流水灯分步循环_第2页
第2页 / 共4页
一键流水灯分步循环_第3页
第3页 / 共4页
一键流水灯分步循环_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《一键流水灯分步循环》由会员分享,可在线阅读,更多相关《一键流水灯分步循环(4页珍藏版)》请在金锄头文库上搜索。

一键多功能识别#include#define uchar unsigned char#define uint unsigned intuchar code tab=0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f;uint num,a;uint read()uchar t,th1,th2;uint val;while(1)th1=TH0;t=TL0;th2=TH0;if(th1=th2)break;val=th1*256+t;return val;void main()TMOD=0X05;/设置计数器 0 为工作方式 1(0000 0001)TH0=0;TL0=0;TR0=1;while(1)num=read();if(num=9)num=0;TH0=0;TL0=0;switch(num)case 0:P2=tab0;break;case 1: P2=tab1;break;case 2: P2=tab2;break;case 3: P2=tab3;break;case 4: P2=tab4;break;case 5: P2=tab5;break;case 6: P2=tab6;break;case 7: P2=tab7;break;default: break;绥化学院电子工程系电子协会 10 级:耿 QQ:835751934

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号