From ebf6d095efe8337b5bea76b468638e52b5d2e906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 17 Jul 2022 00:54:45 +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 49cea81..f2ff708 100644 --- a/test.py +++ b/test.py @@ -3,7 +3,6 @@ import time from datetime import datetime import RPi.GPIO as GPIO -GPIO.cleanup() GPIO.setmode(GPIO.BCM) @@ -12,6 +11,7 @@ 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()