Thank you @Baozhu. I will investigate that now to see if I can make use of some of those functions.
My aim is to monitor sound pressure levels and analyse pitch using FFT, rather than record audio. Size is very important, that’s why I am interested in using the XIAO over larger boards. I currently do this with an analog input, but would much rather switch to I2S.
As always, the best starting point is example sketches, but both the Seeeduino XIAO > I2S ones return this error
\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.7.9\libraries\I2S\src/I2S.h:111:2: error: #error “I2S is not supported on your board!”
The I2S.h library only seems to support arduino boards, so I don’t know if there’s another that does. I will do more investigating…