sysfs mock gpio access
LinuxThis library emulates gpio access to the standard linux sysfs interface
It is a mock replacement to gpio module. Useful when developing embedded software on local machine.
Usage
import gpiomock as gpio
Supported Features
- get pin values with
read(pin)
orinput(pin)
- set pin values with
set(pin, value)
oroutput(pin, value)
- get the pin mode with
mode(pin)
- set the pin mode with
setup(pin, mode)
mode
can currently equalgpio.IN
orgpio.OUT