Esempio n. 1
0
        public AmpCtl(string port)
        {
            m_sio = new SerialIO(port, 9600, SerialIO.StopBits.One, SerialIO.Parity.None);

            if (m_sio.Open() == false)
            {
                throw new Exception("Failed to open serial port");
            }

            ampOn();
        }
Esempio n. 2
0
 public Tuner(string port, PostMeterDataCallback callback)
 {
     m_sio         = new SerialIO(port, 38400, SerialIO.StopBits.One, SerialIO.Parity.None);
     MeterCallback = callback;
 }