Пример #1
0
        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            _timer1s.Enabled = false;

            SerialPortHelper.CloseConnection();
        }
Пример #2
0
 private void InitSerial()
 {
     SerialPortHelper.OnSerialPort_MessageReceived += SerialPortHelper_OnSerialPort_MessageReceived;
     SerialPortHelper.InitSerialPort("/dev/ttyAMA0", false);
 }