Beispiel #1
0
        public int FileOpen(string file, int mode)
        {
            short ret = PiGpioNativeMethods.fileOpen(file, (short)mode);

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