Skip to content

I2S to SD card #387

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

You must be logged in to vote

I suggest that you decide first on what SD card API you want to use and learn how to use files: You can use SD, SDMMC or SDFAT.
A file is just a stream, so it can be used as copy destination by using StreamCopy. At the end don't forget to close the file - otherwise you will not have any data!

Only after you know that your files are working move to the next step!

I suggest that you have a look at the following example which creates and then plays a file using the SD library: https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/streams-audiokit-sd-audiokit/streams-audiokit-sd-audiokit.ino. It uses the AudioKitStream as input and output, so you can just rep…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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