示例#1
0
文件: Form1.cs 项目: herisant/t22-4
 public Form1()
 {
     InitializeComponent();
     arduino = new Arduino(1, "COM17", 9600);
     if (arduino.Connect())
     {
         __RP6Control = new RP6Control(arduino);
         controlTimer.Start();
     }
     else
     {
         MessageBox.Show("failed connecting");
     }
 }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     arduino = new Arduino(1, "COM17", 9600);
     if (arduino.Connect())
     {
         __RP6Control = new RP6Control(arduino);
         controlTimer.Start();
     }
     else
     {
         MessageBox.Show("failed connecting");
     }
 }