zhaolei / WiringOP

This is a GPIO access library for OrangePi. It is based on the original WiringPi for Raspberry Pi.
GNU Lesser General Public License v3.0
351 stars 134 forks source link

Support for interrupts and make debian packages for ubuntu #6

Closed sercxjo closed 7 years ago

sercxjo commented 7 years ago

It need also enabled Sysfs GPIO driver in the kernel which is enabled in armbian. To enable it in other systems it is necessary recompile kernel with the next changes in config file:

-# CONFIG_GPIO_SYSFS is not set +CONFIG_GPIO_SYSFS=y

For Ubuntu you can use my fork of kernel.

Check the driver is enabled:

$ ls /sys/class/gpio
export  gpiochip0  unexport