Ejemplo n.º 1
0
 /// <summary>
 /// Releases all resources used by the libPWMdeviceControl.DeviceControl object.
 /// </summary>
 public void Dispose()
 {
     CancelPeriodicTimer();
     _device?.Dispose();
     _device = null;
 }
Ejemplo n.º 2
0
 private void MainPage_Unloaded(object sender, RoutedEventArgs e)
 {
     stepMotorDriver.Dispose();
     dcMotorDriver.Dispose();
     pwmDriver.Dispose();
 }