public bool Read(int gpio) { short ret = PiGpioNativeMethods.Read((ushort)gpio); if (ret < 0) { throw new PiGPIOException(ret); } return(ret != 0); }
public bool Read(int gpio) { short ret = PiGpioNativeMethods.Read((ushort)gpio); if (ret < 0) { throw new PiGPIOException(ret); } return(ret != 0); }