using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using System.Text.RegularExpressions;
using System.Threading;
namespace 读串口
{
public partial class Form1 : Form
{
private string ll = "55";
private StringBuilder builder = new StringBuilder();
private SerialPort comm = new SerialPort();
//private Thread thread;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
comm.PortName = "COM1";
comm.BaudRate = 9600;
//comm.Open();
int n;
//while (true)
//{
//System.Threading.Thread.Sleep(2000);