Add NoiseSensor radar example and fix short sound playback
The sound task used to zero the I2S TX DMA ring as soon as the event queue drained. i2s_write() only queues samples, so anything shorter than the ~64 ms ring was erased before it reached the speaker. Enable tx_desc_auto_clear instead, which clears each descriptor after the DMA has actually transmitted it. Also add the NoiseSensor radar example and point the default PlatformIO environment at it.
This commit is contained in:
@@ -29,6 +29,7 @@ struct i2s_config_t {
|
||||
int intr_alloc_flags;
|
||||
int dma_buf_count;
|
||||
int dma_buf_len;
|
||||
bool tx_desc_auto_clear;
|
||||
};
|
||||
|
||||
struct i2s_pin_config_t {
|
||||
|
||||
Reference in New Issue
Block a user