Thank you for checking the profile.
input_test.py was useful and showed no problems.
I edited it slightly to just check GPIO24 (see below) and there was no delay in response.
Now when I try my profile with Threshold set to 1 or 2 on P1-18, there is no problem and I cannot reproduce my earlier problem. Hmm. Probably a bad contact. At least I know how to check inputs and know that the profile is fine now.
I also discovered that a version of the video that was 1920 x 1080 would, after a few plays, fail to load. I went back to an earlier 1280 x760 version and it was fine again, so maybe my problem is related to our friend the omxplayer and I shouldn't expect it to handle very large files.
I am using pipresents-next with a version of omxplayer 39e6352 dated 22nd March.
This latest exhibit will make our 6th pipresents exhibit in the galleries.
Code: Select all
import RPi.GPIO as GPIO from time import sleep # pins 3 and 5 have permanent 1.8k pull ups to 3.3 volts and will therefore be 1 even if PULL_UP=GPIO.PUD_DOWN # comment out all but the internal pullup value you want PULL=GPIO.PUD_UP # internal pullup resistor to 3.3 volts #PULL=GPIO.PUD_DOWN #internal pullup resistor to 0 volts #PULL=GPIO.PUD_OFF # internal pullup resistor disconnected GPIO.setwarnings(False) GPIO.cleanup() GPIO.setmode(GPIO.BOARD) GPIO.setup(18,GPIO.IN,pull_up_down=PULL) lv = -10 while True: v = GPIO.input(18) if (v != lv): print v lv = v