private void Begin()
 {
     Port = new SerialPort();
 }
예제 #2
0
 private void Begin()
 {
     Port = new SerialPort(PortNumber, SettingsNStuff.BaudRate, Parity.None, 8, StopBits.One);
     Port.ReceivedBytesThreshold = 3;
     Port.ReceivedEvent += Port_ReceivedEvent;
 }
예제 #3
0
파일: Hooky.cs 프로젝트: qdot/np_boneyard
 private void PortSelectButton_Click(object sender, System.EventArgs e)
 {
     port = new SerialPort((string)PortSelectBox.SelectedItem);
     port.Open();
     port.BaudRate = 38400;
     port.Parity = OpenNETCF.IO.Ports.Parity.None;
     port.StopBits = OpenNETCF.IO.Ports.StopBits.One;
 }