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.
Failed to load latest commit information.
examples response-message for http-call of the websocket, flake8-cleanup Apr 14, 2018

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/ 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.