OPi.GPIO icon indicating copy to clipboard operation
OPi.GPIO copied to clipboard

wait_for_edge not working on OPi lite

Open yipmc opened this issue 6 years ago • 1 comments

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'

yipmc avatar Feb 03 '19 15:02 yipmc

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)

rm-hull avatar Feb 05 '19 17:02 rm-hull