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:
+2
-1
@@ -32,7 +32,8 @@ default_envs = T-Deck
|
||||
; src_dir = examples/I2SPlay
|
||||
; src_dir = examples/LvglArduinoVNC_VGA
|
||||
; src_dir = examples/SimpleTone
|
||||
src_dir = examples/CrtTerminal
|
||||
;src_dir = examples/CrtTerminal
|
||||
src_dir = examples/NoiseSensor
|
||||
; src_dir = examples/MissileCommand
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user