Skip to main content

gpio access via the standard linux sysfs interface

Project description

# Linux [sysfs](https://www.kernel.org/doc/Documentation/gpio/sysfs.txt) gpio access

This library provides gpio access via the standard linux [sysfs interface](https://www.kernel.org/doc/Documentation/gpio/sysfs.txt)

It is intended to mimick [RPIO](http://pythonhosted.org/RPIO/) as much as possible for all features, while also supporting additional (and better named) functionality to the same methods.

## Supported Features

sysfs is still under development, and so only supports minimal features

  • get pin values with read(pin) or input(pin)

  • set pin values with set(pin, value) or output(pin)

  • get the pin mode with mode(pin)

  • set the pin mode with setup(pin, mode)
    • mode can currently equal sysfs.IN or sysfs.OUT

# Future Features - setting pullup / pulldown values for pins - setting pins as pwm

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page