public void Write(int gpio, bool value) { short ret = PiGpioNativeMethods.Write((ushort)gpio, (ushort)(value ? 1 : 0)); if (ret < 0) { throw new PiGPIOException(ret); } }
public void Write(int gpio, bool value) { short ret = PiGpioNativeMethods.Write((ushort)gpio, (ushort)(value ? 1 : 0)); if (ret < 0) { throw new PiGPIOException(ret); } }