From 27bf5d7b1c3e5a02cd20109fc9db606aaad51d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 12 Aug 2022 02:09:11 +0200 Subject: [PATCH] added cooldown for buttonpress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- code.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code.py b/code.py index 0a8d643..87fabee 100644 --- a/code.py +++ b/code.py @@ -20,6 +20,7 @@ previousValue = True while True: if buttonPin.value == False: print("0x0") + time.sleep(0.1) else: if previousValue != clkPin.value: if clkPin.value == False: