This code is for INMP441 to record the sound and save the sound in wav format
I'm using single LEFT channel MONO for my I2S microphone. Make adjustment for your implementation.
PIN CONFIGURATION:
SCK -> 4
WS -> 5
SD -> 18
LR -> 3 (You may also directly Ground the LR pin)