bugfixes to gpiopin

This commit is contained in:
Chris 2014-06-12 01:56:02 +02:00
parent bd5728062e
commit acc695b8ad
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class GpioPin
public function __construct($pin) public function __construct($pin)
{ {
$this->pin = (int)$pin; $this->pin = (int)$pin;
$this->fd = fopen("/sys/class/gpio/gpio{$pin}/value", "rb"); $this->export();
} }
public function __destruct() public function __destruct()