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:
Dejvino
2026-11-12 08:14:19 +01:00
parent 951c56168c
commit 7dfdc06e6f
6 changed files with 1439 additions and 1 deletions
+1
View File
@@ -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 {