setGPIOdirection method

void setGPIOdirection(
  1. GPIOdirection direction
)

Sets the direction of the GPIO.

Implementation

void setGPIOdirection(GPIOdirection direction) {
  _checkStatus();
  _checkError(_nativeGPIOsetDirection(_gpioHandle, direction.index));
}