public function setValue(int $state): bool
    {
        if ($this->type == GPIO::IN) {
            throw new GPIOException('Setting the value of a GPIO input pin is not supported!');
        }
        return $this->adapter->write($this->pin, $state);
    }
public function setValue(int $state): bool
    {
        if ($this->type == GPIO::IN) {
            throw new GPIOException('Setting the value of a GPIO input pin is not supported!');
        }
        return $this->adapter->write($this->pin, $state);
    }
public function setValue ( int $ state ) : bool { if ( $ this -> type == GPIO :: IN ) { throw new GPIOException ( 'Setting the value of a GPIO input pin is not supported!' ) ; } return $ this -> adapter -> write ( $ this -> pin , $ state ) ; }
Set the value of a GPIO output pin.

@param int $state The output state to set (GPIO::HIGH or GPIO::LOW)
@return bool
@throws GPIOException
Set the value of a GPIO output pin .