Skip to content

RPI Pico (RS2040) PIO supprt? #1220

Answered by phoddie
linfan68 asked this question in Q&A
Sep 26, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Really interesting stuff.

Generating the PIO program from JavaScript definitely looks possible. I like the idea of an "instruction builder" that can help prevent errors and perhaps perform validation. It could also be organized so that it isn't necessary to statically declare the length of the instructions, for example using the new resizable array buffer (which lets you make resizable TypedArrays).

PIO is tricky to use and extremely hard to debug

That's for certain.

Maybe a better approach is what I'm doing now, which is keeping the logic in C side. We can provide few examples to demonstrate how to port a PIO example from pico sdk to Moddable.

It is more direct. I mean... PIO is an a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@phoddie
Comment options

Answer selected by linfan68
@linfan68
Comment options

@phoddie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants