public void ConfigureInputPin(int pinNumber, Action <GpioPinEdge> callback) { var control = new PinControl(_gpio, pinNumber); control.ConfigureForInput(pinNumber, callback); _controls.Add(control); }
public void ConfigureOutputPin(int pinNumber) { var control = new PinControl(_gpio, pinNumber); control.ConfigureForOutput(pinNumber, GpioPinValue.High); _controls.Add(control); }
public void ConfigureInputPin(int pinNumber, Action<GpioPinEdge> callback) { var control = new PinControl(_gpio, pinNumber); control.ConfigureForInput(pinNumber, callback); _controls.Add(control); }