private PiGpiodIf2(string address, string port) { short ret = PiGpiodIf2NativeMethods.Start(address, port); if (ret < 0) { throw new PiGPIOException(ret); } this.m_handle = ret; }
private void Dispose(bool disposing) { if (disposing) { if (this.m_handle != short.MinValue) { PiGpiodIf2NativeMethods.Stop(this.m_handle); this.m_handle = short.MinValue; } } }
public int PigpioVersion() { return(unchecked ((int)PiGpiodIf2NativeMethods.PiGpioVersion(this.m_handle))); }
public int HardwareRevision() { return(unchecked ((int)PiGpiodIf2NativeMethods.HardwareRevision(this.m_handle))); }