added cooldown for buttonpress

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-08-12 02:09:11 +02:00
parent 78164b287d
commit 27bf5d7b1c
1 changed files with 1 additions and 0 deletions

View File

@ -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: