i have been working on script run photobooth have built wedding.
after testing 30 minutes or today started trigger photo preview sequence though button had not been pressed. test if being caused button removed it; still triggered on it's own.
removed pi , have connected monitor, keyboard, , mouse. have run script below see if can rule out mistake made in photobooth script.
code getting "button pressed" on , on again without button being pressed.
perhaps know causing this?
after testing 30 minutes or today started trigger photo preview sequence though button had not been pressed. test if being caused button removed it; still triggered on it's own.
removed pi , have connected monitor, keyboard, , mouse. have run script below see if can rule out mistake made in photobooth script.
code: select all
import rpi.gpio gpio import time gpio.setmode(gpio.bcm) gpio.setup(23, gpio.in, pull_up_down=gpio.pud_up) while true: input_state = gpio.input(23) if input_state == false: print('button pressed') time.sleep(0.2)
perhaps know causing this?
what have got connected gpio 18?
raspberrypi
Comments
Post a Comment