PiPHP\GPIO\Pin\Pin::setDirection PHP Method

setDirection() protected method

protected setDirection ( $direction )
    protected function setDirection($direction)
    {
        $directionFile = $this->getPinFile(self::GPIO_PIN_FILE_DIRECTION);
        $this->fileSystem->putContents($directionFile, $direction);
    }