GPIOHandle for character device
New GPIO interface has been introduced recently.
It exposes GPIO interface as
/dev/gpiochip0 character device and
provides several ioctl
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.