public int I2COpen(int bus, int address, int flags) { short ret = PiGpioNativeMethods.I2COpen((ushort)bus, (ushort)address, (ushort)flags); if (ret < 0) { throw new PiGPIOException(ret); } return(ret); }