fix inmp441 channel format

This commit is contained in:
lewis
2019-11-08 13:53:24 +08:00
parent 9078b024aa
commit b22f1d0451
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ void setup()
.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX ),
.sample_rate = 44100,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,
.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB),//I2S_COMM_FORMAT_I2S,
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
.dma_buf_count = 2,

View File

@@ -7,4 +7,4 @@ paragraph=twatch library
category=Device Control
url=https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library
architectures=esp32
includes=TTGO.h
includes=*