PHP Interface PiPHP\GPIO\GPIOInterface

Show file Open project: piphp/gpio

Public Methods

Method Description
createWatcher ( ) : PiPHP\GPIO\Interrupt\InterruptWatcherInterface Create an interrupt watcher.
getInputPin ( integer $number ) : PiPHP\GPIO\Pin\InputPinInterface Get an input pin.
getOutputPin ( integer $number ) : PiPHP\GPIO\Pin\OutputPinInterface Get an output pin.

Method Details

createWatcher() public method

Create an interrupt watcher.
public createWatcher ( ) : PiPHP\GPIO\Interrupt\InterruptWatcherInterface
return PiPHP\GPIO\Interrupt\InterruptWatcherInterface

getInputPin() public method

Get an input pin.
public getInputPin ( integer $number ) : PiPHP\GPIO\Pin\InputPinInterface
$number integer The pin number
return PiPHP\GPIO\Pin\InputPinInterface

getOutputPin() public method

Get an output pin.
public getOutputPin ( integer $number ) : PiPHP\GPIO\Pin\OutputPinInterface
$number integer The pin number
return PiPHP\GPIO\Pin\OutputPinInterface