from machine import Pin
from class_risingfall import risingfall
from class_timer import tm
from class_fall import fall
import time
pin_in=fall(15,'PULL_UP')
led=Pin(25,Pin.OUT)
tempo=tm(1000)
tempo.start()
cnt=0
rf_led=risingfall()
led.on()
rf_led.up(led.value())
print(rf_led.out)
print(rf_led.memory)
time.sleep(1)
while True:
# if tempo.check():
# led.toggle()
# tempo.restart()
# if rf_led.up(led.value()):
if pin_in.down():
cnt+=1
print(cnt)