�[�q���g�p�����Z���T�[
コード例 #1
0
        private void Run()
        {
            _peach = new Peach();
            _peach.Button.ButtonPressed += Button_ButtonPressed;

            _sensor = (new SensorBoard()).Terminal;
            _sensor.MeasurementComplete += _sensor_MeasurementComplete;
            _sensor.Interval = 1000;

            _testTimer = new Timer(PollingMeasure, null, new TimeSpan(0, 0, 1), new TimeSpan(0, 0, 1));

            while (true) { }
        }
コード例 #2
0
 private void _sensor_MeasurementComplete(SensorTerminal sender, SensorTerminal.MeasurementCompleteEventArgs e)
 {
     Debug.Print("Event : " + e.RawValue.ToString() + ", " + e.Value.ToString());
 }