Library to operate GPIO pins via character device
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples response-message for http-call of the websocket, flake8-cleanup Apr 14, 2018
gpiodev
.gitignore
.travis.yml
LICENSE
MANIFEST.in
PWM.md
README.md
setup.py
tox.ini

README.md

GPIOHandle for character device

New GPIO interface has been introduced recently.

It exposes GPIO interface as /dev/gpiochip0 character device and provides several ioctl syscalls for bulk operations on sets of GPIO pins.

In gpiodev/src/gpioctl.c we wrap the ioctl calls into C-functions suitable for later use.

In gpiodev/gpio.py the ctypes bindings created and then used to define the main GPIOHandle class.

Check examples for usage.


Tested on Fedora 26 armv7, Raspberry Pi 3 Model B.