Skip to content

Best way to stop and restart reading I2S from microphone #1827

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

You must be logged in to vote

I think you mean I2S and not I2C. Calling end() is shutting down the I2S all together and calling begin() will restart it with the last defined settings (or default values when nothing has been defined before).

Alternatively you can start the system from processing any data by just stop calling copy(), or you could call end() on the StreamCopy copier which has the same effect. In this case I2S will still be active and will consume some power, but it will be quicker to stop and resume the processing.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

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