文件名称:controling-of-lights
介绍说明--下载内容来自于网络,使用问题请自行百度
下位机通过串口接收数据并降该数据作为switch语句变量对应到不同的函数产生相应的现象,例如当按下全亮按钮时,通过下位机程序控制LED灯使LED灯全亮。
当鼠标勾选单灯控制区复选按钮时,同理通过串口传输数据,相应的LED点亮,取消勾选后该灯熄灭。
当鼠标点击流水灯控制区某个单选按钮时,上位机将数据通过串口送至下位机,下位机根据数据相应调节流水灯延时函数变量,完成控制流水灯速度的功能。
-Lower computer through the serial port to receive data and drop the data as a switch statement, variables corresponding to the different functions to produce the corresponding phenomena, such as when you press the button, the whole light, machine process control through the lower LED lights LED lights at full brightness. When the mouse to check the single lamp control area on the check button, the same way to transfer data through the serial port, the corresponding LED lights up, un-check after the light turns off. When the light control area water mouse click a radio button, the host computer data sent through the serial port under the crew, the next crew adjust the flow of the data corresponding variable light time delay function to complete the control function of the speed of light water.
当鼠标勾选单灯控制区复选按钮时,同理通过串口传输数据,相应的LED点亮,取消勾选后该灯熄灭。
当鼠标点击流水灯控制区某个单选按钮时,上位机将数据通过串口送至下位机,下位机根据数据相应调节流水灯延时函数变量,完成控制流水灯速度的功能。
-Lower computer through the serial port to receive data and drop the data as a switch statement, variables corresponding to the different functions to produce the corresponding phenomena, such as when you press the button, the whole light, machine process control through the lower LED lights LED lights at full brightness. When the mouse to check the single lamp control area on the check button, the same way to transfer data through the serial port, the corresponding LED lights up, un-check after the light turns off. When the light control area water mouse click a radio button, the host computer data sent through the serial port under the crew, the next crew adjust the flow of the data corresponding variable light time delay function to complete the control function of the speed of light water.
相关搜索: 上位机 灯
(系统自动生成,下载前可以参看下载内容)
下载文件列表
controling of lights.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.