Skip to content

Using I2S on the RP2040 for an ADC.... #1863

Answered by pschatzmann
frohro asked this question in Q&A
Discussion options

You must be logged in to vote

Why do you think you need to modify the I2SRP2040.h ?

My recommendation would be to keep things as simple as possible and if the one core solution is working, stick with that!

I think that would be also a great opportunity to show maybe different solutions and ask the students for advantages and disadvantages of each approach.

The AudioTools is using the I2S.h so any API should work in the end: I would propose a third solution which would use the data conversion functionality of the AudioTools with something like the follows:

AudioInfo infoI2S(44100, 32, 2);
AudioInfo infoUSB(44100,16,2);
I2SStream i2s;
FormatConverterStream converter(i2s);

size_t readCB(uint8_t* data, size_t len, Adafru…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by pschatzmann
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