public Pin(short pinNumber, IGpioInterface gpioInterface, PinBase pinBase) { this.PinNumber = pinNumber; this.RawPinNumber = (short)(pinBase + pinNumber); this.gpioInterface = gpioInterface; this.gpioInterface.Init(this.RawPinNumber); }
public OutputPin(short pinNumber, IGpioInterface gpioInterface, PinBase pinBase) : base(pinNumber, gpioInterface, pinBase) { this.Direction = Direction.Out; }
public Gpio(IGpioInterface gpioInterface) { this.gpioInterface = gpioInterface; this.defaultPinBase = gpioInterface.GetDefaultPinBase(); }
public Gpio(IGpioInterface gpioInterface, PinBase defaultPinBase) { this.gpioInterface = gpioInterface; this.defaultPinBase = defaultPinBase; }
public InputPin(short pinNumber, IGpioInterface gpioInterface, PinBase pinBase) : base(pinNumber, gpioInterface, pinBase) { this.Direction = Direction.In; this.gpioInterface.SubscribeToValueChanged(this.RawPinNumber, this.ValueChanged); }