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