From ee9c2a578a1866e81a202e9694a52654bcbac58c Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Mon, 18 Oct 2021 07:29:39 +0200 Subject: [PATCH] pull up aktiviert --- kamera_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kamera_server.py b/kamera_server.py index 5cadc81..7bc3fff 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -14,12 +14,14 @@ kamera_server = Flask(__name__) # Set each pin as an output and make it low: for pin in pins_out: pi.set_mode(pins_out[pin]['nr'], pigpio.OUTPUT) + pi.set_pull_up_down(pins_out[pin]['nr'], pigpio.PUD_UP) pi.write(pins_out[pin]['nr'], 1) #GPIO.setup(pins_out[pin]['nr'], GPIO.OUT) #GPIO.output(pins_out[pin]['nr'], GPIO.HIGH) for pin in pins_in: pi.set_mode(pins_in[pin]['nr'], pigpio.INPUT) + pi.set_pull_up_down(pins_out[pin]['nr'], pigpio.PUD_UP) #GPIO.setup(pins_in[pin]['nr'], GPIO.IN) #GPIO.output(pins_out['kamera']['nr'], GPIO.LOW)