Returns a sample buffer from the queue for reading. This function can be called in half-duplex input or full-duplex modes. When the buffer is no longer needed, it should be returned to I2S by calling release()
, see SampleBuffer for more details.
SampleBuffer buf = i2s.read();
for (size_t i=0; i<buf.size(); i++) {
Serial.println(buf[i]);
}
i2s.release(buf);