检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张扬 张妍 Zhang Yang;Zhang Yan(College of Information Engineering,Dalian Ocean University,Dalian Liaoning 116023)
机构地区:[1]大连海洋大学信息工程学院,辽宁大连116023
出 处:《现代工业经济和信息化》2021年第9期89-91,共3页Modern Industrial Economy and Informationization
基 金:大连海洋大学2020年大学生创新创业训练计划项目(项目编号B202010158041);大连海洋大学“课程思政”教学改革项目:电子信息类导论;大连海洋大学教育教学改革研究项目:基于应用型人才培养的数字信号处理教学改革。
摘 要:随着时代的推移,许多产品在保证其性能的前提下也开始变得越来越美观。其中LED流水灯的应用也越来越广泛起来。利用单片机进行控制使得LED产生流水效果由于成本低廉,操作便捷而便备受青睐。本文选择使用C51单片机利用C语言编程控制LED小灯的闪烁,利用单片机P0-P3口输出的高低电平差异使得不同的小灯发生不同的明暗变化从而产生流水的效果。并引入循环语句和分值语句完成流水灯样式的循环和自动切换。With the passage of time,many products have started to become more and more beautiful while ensuring their performance.Among them,the application of LED flowing lights is also becoming more and more widespread.The use of microcontrollers to control LEDs to produce the effect of running water is very popular because of the low cost and easy operation.In this paper,we choose to use C51 microcontroller to control the flashing of LED lights using C language programming,and use the difference between the high and low levels of the output of the P0-P3 ports of the microcontroller to make different lights change to produce the effect of flowing water.It also introduces the loop statement and fractional statement to complete the cycle and automatic switching of the flowing light style.
分 类 号:TP212[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.239