Exemple #1
0
 public static void SetBit(this I2CDevice device, I2CDevice.Configuration config, int timeout, byte register, byte bitNum, bool value)
 {
     if (!device.TrySetBit(config, timeout, register, bitNum, value))
     {
         throw new Exception();
     }
 }