php-linux-gpio/lib/Gpio.php

39 lines
741 B
PHP
Raw Normal View History

2014-06-06 14:00:34 +00:00
<?php
namespace NoccyLabs\Gpio;
class Gpio
{
public function __construct()
{}
// call export before getpin
public function getPin($pinno)
{}
// export the pin
public function exportPin($pinno)
{}
// unexport the pin
public function unexportPin($pinno)
{}
// set handler, pass null to disable interrupts
public function setInterruptHandler(GpioPin $pin, callable $handler=null)
{}
// get the interrupt handler for the pin
public function getInterruptHandler(GpioPin $pin)
{}
// set edge
public function setInterruptEdge(GpioPin $pin, $edge)
{}
// get edge
public function getInterruptEdge(GpioPin $pin)
{}
}