Pull I2S code out of Arduino? #2875
thestumbler
started this conversation in
General
Replies: 1 comment
-
I think it's more likely the opposite. The AudioBufferDMA class has no inheritance and implements a generic linked list IRQ/DMA handler. I2S implements an Arduino Stream and Print. But neither one really depends themselves on the Arduino API, they just implement it. You can check pico-extras where they implement the same thing more or less with plain SDK. They do something similar to the DMA class here and have their own PIO code for I2ß. |
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
-
No disrespect to Arduino or this great project here, but there are times when I just want to work with a SDK-only project. I looked briefly at doing this, and I'm not too concerned about the I2S code itself. In fact, it can probably compile "on its own" without any Arduino stuff.
But it pulls in two Audio buffer / DMA classes. I took a look at those, and they are really intertwined with Arduino stuff -- at least at first glance.
I see the code that originated the I2S input was initially extracted from MicroPython, made into a standalone and an Arduino project with various improvements and enhancements along the way.
One of those enhancements was 24-bit support, so it doesn't seem like making an SDK-only version from those repos would make sense.
Looking for advice or comments about this task, perhaps they can help me steer clear of pitfalls, hidden or otherwise.
-Chris
Beta Was this translation helpful? Give feedback.
All reactions