input method

  1. @override
GpioInput input(
  1. int physicalPin, [
  2. Pull pull = Pull.off
])
override

Return a GPIO pin configured for input, where physicalPin is the physical pin number not the GPIO number.

Implementation

@override
GpioInput input(int physicalPin, [Pull pull = Pull.off]) {
  allocatePin(physicalPin);
  return RpiGpioInput._(this, physicalPin, pull);
}