Stubbed GPIO class
This commit is contained in:
		
							
								
								
									
										38
									
								
								lib/Gpio.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								lib/Gpio.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
			
		||||
<?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)
 | 
			
		||||
    {}
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user