finish es8311 manual

This commit is contained in:
2026-05-11 18:55:56 +02:00
parent 8bd373b8a4
commit aed00ceda2
4 changed files with 385 additions and 173 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
#include "i2s.h"
#include "hal/i2s_types.h"
#include "pins.h"
i2s_chan_handle_t i2s_tx;
@@ -10,7 +11,7 @@ void audio_i2s_init(void) {
i2s_new_channel(&cfg, &i2s_tx, &i2s_rx);
i2s_std_config_t stdcfg = {
.clk_cfg = I2S_STD_CLK_DEFAULT_CONFIG(44100),
.clk_cfg = I2S_STD_CLK_DEFAULT_CONFIG(48000),
.slot_cfg = I2S_STD_MSB_SLOT_DEFAULT_CONFIG(I2S_DATA_BIT_WIDTH_16BIT,
I2S_SLOT_MODE_STEREO),