擅长:python、mysql、java
<p>我有一个名为<a href="http://yaam.codeplex.com/" rel="nofollow">Yaam on CodePlex</a>的项目,它使用C#通过串行端口发送数据。举个例子。在C端(参见Yaam.xaml.cs),只需使用<code>System.IO.Ports</code>命名空间中的<code>SerialPort</code>类。一旦实例化对象并设置属性(波特率、com端口等),只需调用<code>.Open()</code>。网上还有很多其他的例子。看看这些:</p>
<ul>
<li><a href="http://jtoee.com/2009/02/talking-to-an-arduino-from-net-c/" rel="nofollow">http://jtoee.com/2009/02/talking-to-an-arduino-from-net-c/</a></li>
<li><a href="http://www.instructables.com/id/Interfacing-your-arduino-with-a-C-program/" rel="nofollow">http://www.instructables.com/id/Interfacing-your-arduino-with-a-C-program/</a></li>
</ul>