private void Begin()
 {
     Port = new SerialPort();
 }
Esempio n. 2
0
 private void Begin()
 {
     Port = new SerialPort(PortNumber, SettingsNStuff.BaudRate, Parity.None, 8, StopBits.One);
     Port.ReceivedBytesThreshold = 3;
     Port.ReceivedEvent += Port_ReceivedEvent;
 }
Esempio n. 3
0
 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;
 }