畫面空白處點兩下
貼這段
InitializeComponent();
if (serialPort.IsOpen)
{
serialPort.Close();
}
// Configure our serial port *** You'll likely need to change these for your config! ***
serialPort.PortName = "COM1";
serialPort.BaudRate = 115200;
serialPort.Parity = System.IO.Ports.Parity.None;
serialPort.DataBits = 8;
serialPort.StopBits = System.IO.Ports.StopBits.One;