From 6e5e3947972e3b21f22f5354afc159b02667c22e Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Sun, 17 Oct 2021 13:17:50 +0200 Subject: [PATCH] =?UTF-8?q?on/off=20buttons=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kamera_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kamera_server.py b/kamera_server.py index 12d1182..614e6dd 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -67,12 +67,12 @@ def action(changePin, action): if action == "on": # Set the pin high: #GPIO.output(changePin, GPIO.HIGH) - pi.write(changePin, 1) + pi.write(changePin, 0) # Save the status message to be passed into the template: message = "Turned " + deviceName + " on." if action == "off": #GPIO.output(changePin, GPIO.LOW) - pi.write(changePin, GPIO.LOW) + pi.write(changePin, 1) message = "Turned " + deviceName + " off." # For each pin, read the pin state and store it in the pins dictionary: