Documentation for esp at http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/pins.html reads ``` >>> p0.irq(trigger=Pin.IRQ_FALLING, handler=callback) >>> p2.irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=callback) ``` However, the irq method doesn't take keyword arguments but works fine with positional arguments.
Documentation for esp at http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/pins.html
reads
However, the irq method doesn't take keyword arguments but works fine with positional arguments.