PHP Класс PiPHP\GPIO\Pin\Pin

Наследование: implements PiPHP\GPIO\Pin\PinInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fileSystem
$number

Открытые методы

Метод Описание
__construct ( PiPHP\GPIO\FileSystem\FileSystemInterface $fileSystem, integer $number ) Constructor.
export ( )
getNumber ( )
getValue ( )
unexport ( )

Защищенные методы

Метод Описание
getPinFile ( string $file ) : string Get the path of a pin access file.
setDirection ( $direction )

Приватные методы

Метод Описание
getFile ( string $file ) : string Get the path of the import or export file.
writePinNumberToFile ( string $file ) Write the pin number to a file.

Описание методов

__construct() публичный Метод

Constructor.
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

export() публичный Метод

public export ( )

getNumber() публичный Метод

public getNumber ( )

getPinFile() защищенный Метод

Get the path of a pin access file.
protected getPinFile ( string $file ) : string
$file string The type of pin file (edge/value/direction)
Результат string

getValue() публичный Метод

public getValue ( )

setDirection() защищенный Метод

protected setDirection ( $direction )

unexport() публичный Метод

public unexport ( )

Описание свойств

$fileSystem защищенное свойство

protected $fileSystem

$number защищенное свойство

protected $number