From 6ba3dcd48a9386b1eb799d2a9de0e597477ba364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 17 Jul 2022 16:44:49 +0200 Subject: [PATCH] changed gpio to board MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test.py b/test.py index f2ff708..03f5be4 100644 --- a/test.py +++ b/test.py @@ -4,12 +4,12 @@ from datetime import datetime import RPi.GPIO as GPIO -GPIO.setmode(GPIO.BCM) +GPIO.setmode(GPIO.BOARD) -GPIO.setup(4, GPIO.OUT) -GPIO.output(4, GPIO.HIGH) +GPIO.setup(7, GPIO.OUT) +GPIO.output(7, GPIO.HIGH) time.sleep(1) -GPIO.output(4, GPIO.LOW) +GPIO.output(7, GPIO.LOW) time.sleep(1) GPIO.cleanup() @@ -36,7 +36,7 @@ GPIO.cleanup() # error_print("Unknown state for relay ("+state+")") # while True: -# relay_controller(4, "True") +# relay_controller(7, "True") # time.sleep(2) -# relay_controller(4, "False") +# relay_controller(7, "False") # time.sleep(2) \ No newline at end of file