Page 1 of 1

Room for Improvement: GPIO

Posted: Mon Sep 11, 2017 7:14 pm
by thomaspfeiffer
FriendlyElec,

i see some room for improvements in GPIO:

WiringPi (introduced here) is a pretty old version:

Code: Select all

gpio -v
gpio version: 2.20
Copyright (c) 2012-2014 Gordon Henderson


Compared to Raspbian:

Code: Select all

gpio -v
gpio version: 2.44
Copyright (c) 2012-2017 Gordon Henderson


This old version of WiringPi does not support events/interrupts:

Code: Select all

gpio wfi 7 rising
gpio: Unknown command: wfi.



There is a couple of issues with RPi.GPIO_NP as well:
[*] it runs with python2 only (see details)
[*] events seem to not work; my_callback is never called:

Code: Select all

io.add_event_detect(pin, io.RISING, callback=my_callback)



It would be great if you could provide us with some updates soon.

Thanks in advance, Thomas

Re: Room for Improvement: GPIO

Posted: Tue Sep 12, 2017 7:31 am
by auto3000
This has been discussed in this forum, please read viewtopic.php?f=47&t=872

About RPi.GPIO_NP, I did a release (not based on the official one) that fixes these known issues at https://github.com/auto3000/RPi.GPIO_NP. This release could be built for the desired python* installation.