from machine import Pin
import time
key = Pin(27, Pin.IN, Pin.PULL_DOWN)
num = 0
while True:
if key.value() == 1:
time.sleep_ms(80)
if key.value() == 1:
num += 1
print(num)
from machine import Pin
import time
key = Pin(27, Pin.IN, Pin.PULL_DOWN)
num = 0
while True:
if key.value() == 1:
time.sleep_ms(80)
if key.value() == 1:
num += 1
print(num)