- 博客(2)
- 收藏
- 关注
原创 如何设置串口的属性
private void SetPortProperty()//设置串口的属性 { sp = new SerialPort(); //新建 sp.PortName = COMPort.Text.Trim();//设置串口名 sp.BaudRate = Convert.ToInt32(BaudRate.Text.
2017-03-17 11:20:31
1935
原创 检测可用串口
bool comExistence = false;//有可用串口标志位 cbxCOMPort.Items.Clear(); //清除当前串口号中的所有串口名称 for (int i = 0; i < 10; i++) { try {
2017-03-17 11:18:49
485
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅