from machine import Pin

hu = Pin(14,Pin.IN,Pin.PULL_UP)

def fun(hu):
    print("coming")

hu.irq(fun,Pin.IRQ_RISING)