Method | Description | |
---|---|---|
register ( PiPHP\GPIO\Pin\InputPinInterface $pin, callable $callback ) | Register a callback to fire on pin interrupts. Only one callback can be registered per pin, this method will overwrite. | |
unregister ( PiPHP\GPIO\Pin\InputPinInterface $pin ) | Unregister a pin callback. | |
watch ( integer $timeout ) | Watch for pin interrupts. |
public unregister ( PiPHP\GPIO\Pin\InputPinInterface $pin ) | ||
$pin | PiPHP\GPIO\Pin\InputPinInterface |