* i2s can send now buffers
* adding mono and stereo, with blocking and non blocking support
* fixing crash
* cosmetic changes
* we dont need the & 0xffff
* using unsigned integers since we'll never be using negative numbers
Enables I2S stereo input via DMA using new API calls:
. i2s_rxtx_begin(bool rx, rool tx);
. i2s_read_sample(uint32_t *l, uint32_t *r);
Original API calls will only enable TX, so this is backwards compatible.
Add simple I2S input example code using Arduino serial plotter.
Add UDP transmit of I2S microphone data to a PC (remote microphone).
Clean up and reorganize code to share RX and TX logic as much as
possible. Fix a potential WDT error while in blocking sample read
and write.
zero buffers so they are mute in case of underflow
add non-blocking write (returns false if DMA was full)
add checks for full and empty DMA
add some comments to the header