From 289a1fcd702f09ba2bf671d124335961becc8525 Mon Sep 17 00:00:00 2001 From: Martin Roger Date: Sun, 22 Feb 2026 11:48:35 +0100 Subject: [PATCH 1/4] Update to latest core and libdep --- platformio.ini | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/platformio.ini b/platformio.ini index 1986b2b..08b969b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,7 +1,7 @@ [platformio] [env] -platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.32/platform-espressif32.zip +platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip board_build.partitions = huge_app.csv framework = arduino extra_scripts = pre:version.py @@ -9,9 +9,12 @@ build_flags = -D PIOENV="\"$PIOENV"\" ; -D STACK_HIGH_WATERMARK_LOG lib_deps = - https://github.com/pschatzmann/ESP32-A2DP.git#v1.8.8 - https://github.com/pschatzmann/arduino-audio-tools.git#v1.2.0 - https://github.com/pschatzmann/arduino-audio-driver.git#v0.1.4 + https://github.com/pschatzmann/ESP32-A2DP.git#v1.8.9 + https://github.com/pschatzmann/arduino-audio-tools.git#v1.2.2 + https://github.com/pschatzmann/arduino-audio-driver.git#v0.2.1 + ; https://github.com/pschatzmann/ESP32-A2DP.git + ; https://github.com/pschatzmann/arduino-audio-tools.git + ; https://github.com/pschatzmann/arduino-audio-driver.git ;https://github.com/martinroger/espod.git monitor_filters = esp32_exception_decoder monitor_speed = 115200 @@ -19,7 +22,7 @@ monitor_speed = 115200 [env:SBC_NodeMCU32S] build_flags = ${env.build_flags} - -D CORE_DEBUG_LEVEL=2 + -D CORE_DEBUG_LEVEL=3 -D UART1_RX=16 -D UART1_TX=17 ; -D INVERT_LED_LOGIC @@ -43,8 +46,6 @@ build_flags = -D INVERT_LED_LOGIC -D CORE_DEBUG_LEVEL=3 -D A2DP_SINK_NAME="\"A1S MiniPod"\" - - lib_deps = ${env.lib_deps} https://github.com/martinroger/espod.git#v0.1.0 From 9f992dff567155b8fa5672787644269e895ad150 Mon Sep 17 00:00:00 2001 From: Martin Roger Date: Sun, 22 Feb 2026 12:31:51 +0100 Subject: [PATCH 2/4] Looser pinning --- platformio.ini | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 08b969b..55b6494 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,9 +9,9 @@ build_flags = -D PIOENV="\"$PIOENV"\" ; -D STACK_HIGH_WATERMARK_LOG lib_deps = - https://github.com/pschatzmann/ESP32-A2DP.git#v1.8.9 - https://github.com/pschatzmann/arduino-audio-tools.git#v1.2.2 - https://github.com/pschatzmann/arduino-audio-driver.git#v0.2.1 + https://github.com/pschatzmann/ESP32-A2DP.git @~1.8.9 + https://github.com/pschatzmann/arduino-audio-tools.git @~1.2.2 + https://github.com/pschatzmann/arduino-audio-driver.git @~0.2.1 ; https://github.com/pschatzmann/ESP32-A2DP.git ; https://github.com/pschatzmann/arduino-audio-tools.git ; https://github.com/pschatzmann/arduino-audio-driver.git @@ -20,6 +20,7 @@ monitor_filters = esp32_exception_decoder monitor_speed = 115200 [env:SBC_NodeMCU32S] +build_type = debug build_flags = ${env.build_flags} -D CORE_DEBUG_LEVEL=3 @@ -29,7 +30,7 @@ build_flags = board = nodemcu-32s lib_deps = ${env.lib_deps} - https://github.com/martinroger/espod.git#v0.1.0 + https://github.com/martinroger/espod.git @~0.1.0 lib_ignore = audio-driver [env:a1sMini] From 48cc3291e380204437a9f03ae33f04e75f723d68 Mon Sep 17 00:00:00 2001 From: Martin Roger Date: Sun, 22 Feb 2026 13:45:38 +0100 Subject: [PATCH 3/4] I2S typo correction --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e68b133..04e7d20 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,7 @@ BluetoothA2DPSink a2dp_sink; #define DIN_PIN 26 #endif #ifndef BCLK_PIN -#define BCLK_PIN 26 +#define BCLK_PIN 27 #endif #endif @@ -219,7 +219,7 @@ void initializeA2DPSink() { #ifdef AUDIOKIT minimalPins.addI2C(PinFunction::CODEC, 32, 33); - minimalPins.addI2S(PinFunction::CODEC, 0, 27, 25, 26, 35); + minimalPins.addI2S(PinFunction::CODEC, 0, BCLK_PIN, WS_PIN, DIN_PIN, 35); a2dp_sink.set_stream_reader(read_data_stream, false); // Might need commenting out auto cfg = i2s.defaultConfig(); cfg.copyFrom(info); From 6db5fbf9ae3219d442fb332f30200db2b7232e99 Mon Sep 17 00:00:00 2001 From: Martin Roger Date: Sun, 22 Feb 2026 16:11:08 +0100 Subject: [PATCH 4/4] Removing stream reader for A1S --- src/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 04e7d20..fa9fcbd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,6 +43,15 @@ #ifndef A2DP_SINK_NAME #define A2DP_SINK_NAME "espiPod" #endif +#ifndef WS_PIN +#define WS_PIN 25 +#endif +#ifndef DIN_PIN +#define DIN_PIN 26 +#endif +#ifndef BCLK_PIN +#define BCLK_PIN 27 +#endif #ifdef AUDIOKIT // Using the AiThink A1S AudioKit chip #include "AudioBoard.h" @@ -55,15 +64,6 @@ BluetoothA2DPSink a2dp_sink(i2s); #else // Case not using the audiokit, like Sandwich Carrier Board I2SStream i2s; BluetoothA2DPSink a2dp_sink; -#ifndef WS_PIN -#define WS_PIN 25 -#endif -#ifndef DIN_PIN -#define DIN_PIN 26 -#endif -#ifndef BCLK_PIN -#define BCLK_PIN 27 -#endif #endif /// @brief Data stream reader callback @@ -220,7 +220,7 @@ void initializeA2DPSink() #ifdef AUDIOKIT minimalPins.addI2C(PinFunction::CODEC, 32, 33); minimalPins.addI2S(PinFunction::CODEC, 0, BCLK_PIN, WS_PIN, DIN_PIN, 35); - a2dp_sink.set_stream_reader(read_data_stream, false); // Might need commenting out + // a2dp_sink.set_stream_reader(read_data_stream, false); // Might need commenting out auto cfg = i2s.defaultConfig(); cfg.copyFrom(info); i2s.begin(cfg);