コード例 #1
0
        /// <inheritDoc />
        public void SetPullUpDown(int gpio, PullUpDown pud)
        {
            short ret = PiGpioNativeMethods.SetPullUpDown((ushort)gpio, (ushort)pud);

            if (ret < 0)
            {
                throw new PiGPIOException(ret);
            }
        }