/// <inheritdoc/> protected override void Dispose(bool disposing) { _i2cBus?.RemoveDevice(_deviceAddress); _i2cBus = null !; _settings = null !; base.Dispose(disposing); }
internal Ft232HI2c(Ft232HI2cBus i2cBus, int deviceAddress) { _i2cBus = i2cBus; _deviceAddress = deviceAddress; _settings = new I2cConnectionSettings((int)i2cBus.DeviceInformation.LocId, deviceAddress); }