bugfixes to gpiopin
This commit is contained in:
parent
bd5728062e
commit
acc695b8ad
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user