public bool IsPinOpen(int pinNumber) { return(OpenPins.Contains(pinNumber)); }
public void ClosePin(int pinNumber) { OpenPins.Remove(pinNumber); }
public IDisposable OpenPin(int pinNumber, PinMode mode) { OpenPins.Add(pinNumber); SetPinMode(pinNumber, mode); return(Disposable.Create(() => ClosePin(pinNumber))); }
public IDisposable OpenPin(int pinNumber) { OpenPins.Add(pinNumber); return(Disposable.Create(() => ClosePin(pinNumber))); }
public void OpenPin(int pinNumber, PinMode mode) { OpenPins.Add(pinNumber); SetPinMode(pinNumber, mode); }
public void OpenPin(int pinNumber) { OpenPins.Add(pinNumber); }