public void Dispose() { I2CWrapper.CloseBus(_busHandle); }
public void Write(byte[] output) { I2CWrapper.WriteBytes(_busHandle, _address, output, output.Length); }
public void WriteRead(byte[] output, byte[] input) { I2CWrapper.WriteBytes(_busHandle, _address, output, output.Length); I2CWrapper.ReadBytes(_busHandle, _address, input, input.Length); }
public I2cDevice(string i2cBusPath, int address) { _address = address; _busHandle = I2CWrapper.OpenBus(i2cBusPath); }