C sharp

使用 C# 來操作 Arduino

C# 與 Arduino 相互溝通 整個概念就是依靠 Serial Port 來溝通,讓電腦端可以控制 Arduino 的 LED 燈 要讓 C# 可以控制 Serial Port,必須要引入 using System.IO.Ports 這個東西才行,安裝方式我是直接用 Nuget 去裝,不知為何我沒有內建這個東西。 相關介紹可以去看微軟的技術文件 C# 程式 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; …