Ad the ability to read the PIO PC location? #16964
Unanswered
dclaar
asked this question in
RP2040 / Pico
Replies: 1 comment
-
I'm agnostic on reading the PIO PC. In the specific use case of a debouncer I don't think it's a very good API, requiring the user code to regularly poll N state machines. You really want each debounced switch to trigger a callback or set an At the moment I can't think of a neat way of doing this with multiple SM's. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code doesn't currently support reading the PIO PC. Would this be a reasonable thing to add?
Use case:
I found this interesting PIO button debouncer. You determine the button state by reading the PIO PC with
pio_sm_get_pc
. I think most of the rest of it is already possible with the existing PIO support: Would it be reasonable to add this functionality?Beta Was this translation helpful? Give feedback.
All reactions