/// <inheritDoc /> public void SetPullUpDown(int gpio, PullUpDown pud) { short ret = PiGpioNativeMethods.SetPullUpDown((ushort)gpio, (ushort)pud); if (ret < 0) { throw new PiGPIOException(ret); } }