public void EnableI2C(byte SlaveAddress = 0, uint BaudRate = 100000) { if (i2c != null) { i2c.Dispose(); } i2c = new RaspI2C(SlaveAddress, BaudRate); }
public void DisableI2C() { if (i2c == null) { return; } i2c.Dispose(); i2c = null; }
public void EnableI2C(byte SlaveAddress = 0, uint BaudRate = 100000) { if (i2c != null) { i2c.Dispose(); } i2c = new RaspI2C(SlaveAddress, BaudRate); }
public void DisableI2C() { if (i2c == null) { return; } i2c.Dispose(); i2c = null; }