예제 #1
0
 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);
 }
예제 #3
0
 public IDisposable OpenPin(int pinNumber)
 {
     OpenPins.Add(pinNumber);
     return(Disposable.Create(() => ClosePin(pinNumber)));
 }
 public void OpenPin(int pinNumber)
 {
     OpenPins.Add(pinNumber);
 }