Exemple #1
0
 public void Dispose()
 {
     _servoMotor?.Dispose();
     _servoChannel?.Dispose();
     _pca9685?.Dispose();
     _i2cDevice?.Dispose();
 }
Exemple #2
0
        /// <inheritdoc/>
        public void Dispose()
        {
            foreach (var channel in _channelsUsed)
            {
                channel.Stop();
            }

            _pca9685?.Dispose();
            _pca9685 = null !;
        }