From 22e9a0df9954fba040d318cdc6e84172e6a9f73d Mon Sep 17 00:00:00 2001 From: FedericoBusero <35894905+FedericoBusero@users.noreply.github.com> Date: Tue, 23 May 2023 21:38:16 +0200 Subject: [PATCH] Update platformio.ini : fix on IDF 3.4.0 on ESP32 The code of this project is compatible with the different versions of IDF. So in case you want to port the software on more recent chips (C3/S2) things should work ok. The implementation of I2S on the original ESP32 chip however contains more and more bugs in recent IDF 4.x.x versions, such as - I2S mic input not working - DAC output not working - adc input not working So we fix IDF version to 3.4.0 until the issues are fixed. --- platformio.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index de1263c..80aa00b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -15,7 +15,6 @@ extra_configs = [env] framework = arduino -platform = espressif32 ; upload_port = /dev/cu.SLAB_USBtoUART ; monitor_port = /dev/cu.SLAB_USBtoUART monitor_speed = 115200 @@ -24,10 +23,12 @@ build_flags = -Ofast [env:tinypico] board = tinypico +platform = espressif32@3.4.0 lib_deps = tinypico/TinyPICO Helper Library@^1.4.0 build_flags = -Ofast -D USE_I2S_MIC_INPUT -D USE_ESP_NOW [env:lolin32] board = lolin32 +platform = espressif32@3.4.0 build_flags = -Ofast -D USE_I2S_MIC_INPUT -D USE_ESP_NOW lib_ignore = indicator_led_pico