Skip to content

Pin Interrupts don't appear to take keyword arguments #2041

@slzatz

Description

@slzatz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions