Quantcast
Channel: Armbian news
Viewing all articles
Browse latest Browse all 486

BananaPI M1: gpio.add_event_detect not working after switch to vanilla kernel

$
0
0

Hi,

 

I was on the legacy kernel until recently with my bananaPi M1.

I switched to the vanilla kernel but since then, when I try to use the GPIO python library (for bananapi from LeMaker github), it works quite well except for functions

gpio.add_event_detect() or GPIO.wait_for_edge(channel, GPIO.RISING)

This usually disconnect my network and the event is never detected.

I have to reboot the PI to restore the state. 

 

Also, a normal read/write state GPIO.input(PIN_NUM) works perfectly...

 

I assume it is due to the vanilla kernel but could not find any documentation on why this is happening...

 

Any answer/comments would be much appreciated!

Let me know if you need more info on my setup.

Thanks and regards,

Fabien


Viewing all articles
Browse latest Browse all 486

Trending Articles