Ejemplo n.º 1
0
 public void Dispose()
 {
     I2CWrapper.CloseBus(_busHandle);
 }
Ejemplo n.º 2
0
 public void Write(byte[] output)
 {
     I2CWrapper.WriteBytes(_busHandle, _address, output, output.Length);
 }
Ejemplo n.º 3
0
 public void WriteRead(byte[] output, byte[] input)
 {
     I2CWrapper.WriteBytes(_busHandle, _address, output, output.Length);
     I2CWrapper.ReadBytes(_busHandle, _address, input, input.Length);
 }
Ejemplo n.º 4
0
 public I2cDevice(string i2cBusPath, int address)
 {
     _address   = address;
     _busHandle = I2CWrapper.OpenBus(i2cBusPath);
 }