예제 #1
0
 /// <inheritdoc/>
 protected override void Dispose(bool disposing)
 {
     _i2cBus?.RemoveDevice(_deviceAddress);
     _i2cBus   = null !;
     _settings = null !;
     base.Dispose(disposing);
 }
예제 #2
0
 internal Ft4222I2c(Ft4222I2cBus i2cBus, int deviceAddress)
 {
     _i2cBus        = i2cBus;
     _deviceAddress = deviceAddress;
     _settings      = new I2cConnectionSettings((int)i2cBus.DeviceInformation.LocId, deviceAddress);
 }