Power & Source of Big Ideas

Room for Improvement: GPIO

Moderators: chensy, FATechsupport

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

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 42 on Fri Jul 15, 2016 1:04 am

Users browsing this forum: No registered users and 3 guests