Example #1
0
        public void ConfigureInputPin(int pinNumber, Action <GpioPinEdge> callback)
        {
            var control = new PinControl(_gpio, pinNumber);

            control.ConfigureForInput(pinNumber, callback);
            _controls.Add(control);
        }
Example #2
0
        public void ConfigureOutputPin(int pinNumber)
        {
            var control = new PinControl(_gpio, pinNumber);

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