from class_filterin import filterin
import time
aioo=filterin(15,'PULL_UP',500) #pin gpio,modo('PULL_UP' 'PULL_DOWN'),tempo ms filtro
cnt=0
while True:
if aioo.value():
cnt+=1
time.sleep(0.1)
print('contatore',cnt)from class_filterin import filterin
import time
aioo=filterin(15,'PULL_UP',500) #pin gpio,modo('PULL_UP' 'PULL_DOWN'),tempo ms filtro
cnt=0
while True:
if aioo.value():
cnt+=1
time.sleep(0.1)
print('contatore',cnt)