PHP 클래스 PiPHP\GPIO\Pin\Pin

상속: implements PiPHP\GPIO\Pin\PinInterface
파일 보기 프로젝트 열기: piphp/gpio 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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