Skip to content

PIO IRQ: Inadequate Documentation = Lost #15897

Discussion options

You must be logged in to vote

Thank you all for you help.

I now understand how to properly use PIO irq instructions and how to use the StateMachine irq.

I am going to submit an issue with the following suggestions, therefore I would be grateful if you would please review to ensure I have not made a mistake.

rp2.StateMachine.irq

https://docs.micropython.org/en/latest/library/rp2.StateMachine.html#rp2.StateMachine.irq

Current documentation

StateMachine.irq(handler=None, trigger=0 | 1, hard=False)
  Returns the IRQ object for the given StateMachine.
  
  Optionally configure it

Recommended changes

StateMachine.irq(handler=None, trigger=0 | 1, hard=False)

   "handler" is the function that will execute once the interrupt…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@robert-hh
Comment options

@sk8board
Comment options

@robert-hh
Comment options

@Josverl
Comment options

@peterhinch
Comment options

Comment options

You must be logged in to vote
1 reply
@rkompass
Comment options

Comment options

You must be logged in to vote
1 reply
@peterhinch
Comment options

Answer selected by sk8board
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants