[ Prev ] [ Index ] [ Next ]

Using I2S on Seeeduino XIAO

Created Thursday 23 November 2023


https://youtu.be/20NlsxA7lAk


Found solution in this topic


  1. Find variant.h file for Seeduino XIAO (I use FAR Manager, ALT+F7, and search for I2S_INTERFACES_COUNT in *.h files in "Documents and Settings")
  2. Comment out #define I2S_INTERFACES_COUNT 0
  3. Add following code instead:

// from https://forum.seeedstudio.com/t/can-a-xiao-be-configured-for-i2s/253248/16
#define I2S_INTERFACES_COUNT 1
  
#define I2S_DEVICE 0
#define I2S_CLOCK_GENERATOR 3
#define PIN_I2S_SD (PIN_A8)
#define PIN_I2S_SCK (2u)
#define PIN_I2S_FS (3u)

  1. Now I2S can be used

Connection:
Pin 8 - SD
Pin 2 - SCK
Pin 3 - FS (aka WS)



p.s. Attached example works with INMP441 i2s microphone.