Ejemplo n.º 1
0
        public void BSpiOpen(int gpioCS, int gpioMiso, int gpioMosi, int gpioClk, int bauds, int flags)
        {
            short ret = PiGpioNativeMethods.bspiOpen((ushort)gpioCS, (ushort)gpioMiso, (ushort)gpioMosi, (ushort)gpioClk, (ushort)bauds, unchecked ((ushort)flags));

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