Property | Type | Description | |
---|---|---|---|
$fileSystem | |||
$number |
Method | Description | |
---|---|---|
__construct ( PiPHP\GPIO\FileSystem\FileSystemInterface $fileSystem, integer $number ) | Constructor. | |
export ( ) | ||
getNumber ( ) | ||
getValue ( ) | ||
unexport ( ) |
Method | Description | |
---|---|---|
getPinFile ( string $file ) : string | Get the path of a pin access file. | |
setDirection ( $direction ) |
Method | Description | |
---|---|---|
getFile ( string $file ) : string | Get the path of the import or export file. | |
writePinNumberToFile ( string $file ) | Write the pin number to a file. |
public __construct ( PiPHP\GPIO\FileSystem\FileSystemInterface $fileSystem, integer $number ) | ||
$fileSystem | PiPHP\GPIO\FileSystem\FileSystemInterface | An object that provides file system access |
$number | integer | The number of the pin |
protected getPinFile ( string $file ) : string | ||
$file | string | The type of pin file (edge/value/direction) |
return | string |