如何在C#中使用串口编程 [英] how to use Serial ports programming in C#

查看:125
本文介绍了如何在C#中使用串口编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
我需要在c#项目中使用串口来控制LED。所以请任何人帮助我

提前感谢...

Hi I need to use serial ports in c# project to control LED. so please any one help me
thanks in advance...

推荐答案

你应该连接 LED 到微控制器。反过来,您的应用程序应与微控制器本身串行通信。



许多可用的教程 [ ^ ]与 C#进行串行通信。
You should connect the LEDs to a microcontroller. Your application, in turn, should serially communicate with the microcontroller itself.

There are many available tutorials[^] on serial communication with C#.


通过以下链接了解串口端口使用c#



http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx [ ^ ]
U cn go thru below link to understand serial ports using c#

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^]


这篇关于如何在C#中使用串口编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆