OPi.GPIO
OPi.GPIO copied to clipboard
wait_for_edge not working on OPi lite
import orangepi.lite
import OPi.GPIO as GPIO
GPIO.setmode(orangepi.lite.BOARD)
GPIO.setup(16, GPIO.IN)
GPIO.wait_for_edge(16, GPIO.RISING)
gives
[Errno 2] No such file or directory: '/sys/class/gpio/gpio68/edge'
Do you see any other edge files? try: ls /sys/class/gpio/*/edge whilst that program is running (you might have to put a delay in the program to verify)