public void Dispose() { _servoMotor?.Dispose(); _servoChannel?.Dispose(); _pca9685?.Dispose(); _i2cDevice?.Dispose(); }
/// <inheritdoc/> public void Dispose() { foreach (var channel in _channelsUsed) { channel.Stop(); } _pca9685?.Dispose(); _pca9685 = null !; }