Skip to content
python gpio module for linux using the sysfs file access (/sys/class/gpio). Mimics similar Raspberry Pi IO libraries
Python
Branch: master
Clone or download
Rett Berg
Latest commit d4d8bdc Mar 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests release 0.2.0 with long awaited bugfix. Closes #4 Feb 7, 2017
.gitignore setup: change to correct link Mar 10, 2015
LICENSE.txt Update LICENSE.txt Jul 27, 2017
MANIFEST.in Manifest and README Apr 2, 2015
README.md Update README.md Jun 5, 2015
gpio.py update version to 0.3.0 Mar 21, 2019
setup.cfg Add setup, update name Mar 10, 2015
setup.py setup: change to correct link Mar 10, 2015

README.md

Linux sysfs gpio access

This library provides gpio access via the standard linux sysfs interface

It is intended to mimick RPIO as much as possible for all features, while also supporting additional (and better named) functionality to the same methods.

Supported Features

  • get pin values with read(pin) or input(pin)
  • set pin values with set(pin, value) or output(pin, value)
  • get the pin mode with mode(pin)
  • set the pin mode with setup(pin, mode)
    • mode can currently equal gpio.IN or gpio.OUT
You can’t perform that action at this time.