From fb90b45f690f2da79bb313fb7f1d7aaed1d36445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 17 Jul 2022 00:53:22 +0200 Subject: [PATCH] moved clenaup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 1f6e0f6..49cea81 100644 --- a/test.py +++ b/test.py @@ -3,9 +3,10 @@ import time from datetime import datetime import RPi.GPIO as GPIO +GPIO.cleanup() + GPIO.setmode(GPIO.BCM) -GPIO.cleanup() GPIO.setup(4, GPIO.OUT) GPIO.output(4, GPIO.HIGH) time.sleep(1)