資源簡介
串口通信助手
代碼片段和文件信息
using?System;
using?System.IO.Ports;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?INIFILE;
using?System.Text.Regularexpressions;
namespace?SerialPortConnection
{
????public?partial?class?Form1?:?Form
????{
????????SerialPort?sp1?=?new?SerialPort();
????????//sp1.ReceivedBytesThreshold?=?1;//只要有1個字符送達端口時便觸發DataReceived事件?
?????????
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????//加載
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????INIFILE.Profile.LoadProfile();//加載所有
????????????
???????????//?預置波特率
????????????switch?(Profile.G_BAUDRATE)
????????????{
????????????????case?“300“:
?????????
- 上一篇:C# 寫的Socket 異步客戶端
- 下一篇:QQ群成員提取工具源碼
評論
共有 條評論