Ejemplo n.º 1
0
        /// <summary>
        /// Updates the display when the <see cref="Device"/> channels change.
        /// </summary>
        private void OnChannelsChanged(object sender, PwmFrame frame)
        {
            // Dump statistics to output
            WriteOutput(frame.ToString());

            // Update display
            DoPropertyChanged(nameof(Device));
        }
 /// <summary>
 /// Receives updates when new PWM frames arrive.
 /// </summary>
 private void OnChannelsChanged(object sender, PwmFrame frame)
 {
     // Write contents to the debug output
     Debug.WriteLine(frame);
 }