bugfixes to gpiopin
This commit is contained in:
parent
0fab790ac2
commit
bb0e8af598
@ -46,6 +46,7 @@ class GpioPin
|
||||
{
|
||||
$this->pin = (int)$pin;
|
||||
$this->export();
|
||||
$this->fd = fopen("/sys/class/gpio/gpio{$pin}/value", "rb");
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
|
Loading…
Reference in New Issue
Block a user