esp32:i2s
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| esp32:i2s [2020/05/12 19:45] – aistis | esp32:i2s [2020/09/30 07:16] (current) – aistis | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| esp32 i2s microphone | esp32 i2s microphone | ||
| - | tik l/r ruti buti high | + | tik l/r ruti buti GRND |
| {{: | {{: | ||
| Line 13: | Line 13: | ||
| veikia man ir 16 ir 32 bitai: I2S_BITS_PER_SAMPLE_16BIT I2S_BITS_PER_SAMPLE_32BIT | veikia man ir 16 ir 32 bitai: I2S_BITS_PER_SAMPLE_16BIT I2S_BITS_PER_SAMPLE_32BIT | ||
| + | |||
| + | sample_rate maziausias 4000, didziausias 48000 | ||
| ne sitas SPH0645 I2S MEMS Microphone | ne sitas SPH0645 I2S MEMS Microphone | ||
| Line 21: | Line 23: | ||
| if (bytes_read > 0 and sample != 0) { | if (bytes_read > 0 and sample != 0) { | ||
| | | ||
| - | | + | {{: |
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | // The I2S config as per the example | ||
| + | const i2s_config_t i2s_config = { | ||
| + | .mode = i2s_mode_t(I2S_MODE_MASTER | I2S_MODE_RX), | ||
| + | //.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN | I2S_MODE_ADC_BUILT_IN), | ||
| + | .sample_rate = | ||
| + | .bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT, | ||
| + | .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT, | ||
| + | // | ||
| + | // | ||
| + | .communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB), | ||
| + | // | ||
| + | // .dma_buf_count = 16, // number of buffers | ||
| + | // .dma_buf_len = 80 // 8 samples per buffer (minimum) | ||
| + | |||
| + | .intr_alloc_flags = 0, | ||
| + | // | ||
| + | .dma_buf_count = 16, | ||
| + | .dma_buf_len = 1024 | ||
| + | }; | ||
| + | |||
| + | </ | ||
| + | |||
| + | ir L/R turi buti pajungtas ant grnd | ||
| + | {{: | ||
esp32/i2s.1589301937.txt.gz · Last modified: by aistis
