Beispiel #1
0
        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            _timer1s.Enabled = false;

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