Skip to content
python gpio module for linux using the sysfs file access (/sys/class/gpio). Mimics similar Raspberry Pi IO libraries
Branch: master
Clone or download
Rett Berg
Latest commit d4d8bdc Mar 21, 2019
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 and README Apr 2, 2015 Update Jun 5, 2015 update version to 0.3.0 Mar 21, 2019
setup.cfg Add setup, update name Mar 10, 2015 setup: change to correct link Mar 10, 2015

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.