From 15d3d591ec9b8041052a7ddaad3ef5090a58be05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 17 Jul 2022 00:52:31 +0200 Subject: [PATCH] moved cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index 8b9cd97..1d3d62e 100644 --- a/test.py +++ b/test.py @@ -6,11 +6,11 @@ import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(4, GPIO.OUT) +GPIO.cleanup() GPIO.output(4, GPIO.HIGH) time.sleep(1) GPIO.output(4, GPIO.LOW) time.sleep(1) -GPIO.cleanup() # def debug_print(message: str): # now = datetime.now()