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