pub fn configure(pin: GpioPin, mode: GpioMode) -> Result<()>
Configure a GPIO pin’s direction and pull mode.
Returns Error::InvalidParam if the pin is out of range.
Error::InvalidParam