SHARE
TWEET

Untitled

a guest Apr 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     private void setupComPort()
  2.         {
  3.             _serialPort.DataBits = 8;
  4.             _serialPort.Parity = Parity.None;
  5.             _serialPort.DataBits = 8;
  6.             _serialPort.StopBits = StopBits.Two;
  7.             _serialPort.PortName = "COM40";     //hard coded COM40
  8.             _serialPort.BaudRate = 9600;
  9.             _serialPort.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler);
  10.  
  11.  
  12.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top