small improvement for athom music

This commit is contained in:
Frank
2024-05-04 13:55:25 +02:00
parent ecf7acbc76
commit daec240c52
2 changed files with 7 additions and 3 deletions

View File

@@ -2354,13 +2354,14 @@ board_build.partitions = tools/WLED_ESP32_16MB.csv ;; WLED standard for
;https://www.athom.tech/blank-1/wled-esp32-music-addressable-led-strip-controller
[env:athom_music_esp32_4MB_M]
extends = esp32_4MB_M_base
build_flags = ${esp32_4MB_M_base.build_flags} ${Athom_PDMmic.build_flags}
build_flags = ${esp32_4MB_M_base.build_flags}
${Athom_PDMmic.build_flags}
-D WLED_AP_SSID_UNIQUE
-D WLED_RELEASE_NAME=athom_music_esp32_4MB_M
-D ABL_MILLIAMPS_DEFAULT=14500 ; max 15A
-D WLED_DISABLE_MQTT -D WLED_DISABLE_LOXONE
-D WLED_DISABLE_ADALIGHT ;to get 4ld working
-D BTNPIN=0 -D RLYPIN=2 -D IRPIN=25 -D IRTYPE=9 -D LEDPIN=18 -D
-D BTNPIN=0 -D RLYPIN=2 -D IRPIN=25 -D IRTYPE=9 -D LEDPIN=18
-D AUDIOPIN=-1
; -D TEMPERATURE_PIN=23
-D FLD_PIN_SCL=-1 -D FLD_PIN_SDA=-1 ; use global!
@@ -2370,6 +2371,8 @@ build_flags = ${esp32_4MB_M_base.build_flags} ${Athom_PDMmic.build_flags}
; -D PIR_SENSOR_PIN=-1
; -D PWM_PIN=-1
; -D WLED_USE_MY_CONFIG
; RAM: [=== ] 25.9% (used 84948 bytes from 327680 bytes)
; Flash: [==========] 95.9% (used 1509113 bytes from 1572864 bytes)
;https://shop.myhome-control.de/Elektronik/
[env:abc_wled_controller_v43_S]

View File

@@ -1801,7 +1801,8 @@ class AudioReactive : public Usermod {
delay(100); // Give that poor microphone some time to setup.
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
if ((i2sckPin == I2S_PIN_NO_CHANGE) && ((dmType == 1) || (dmType == 4)) ) dmType = 5; // dummy user support: SCK == -1 --means--> PDM microphone
if ((i2sckPin == I2S_PIN_NO_CHANGE) && (i2ssdPin >= 0) && (i2swsPin >= 0)
&& ((dmType == 1) || (dmType == 4)) ) dmType = 51; // dummy user support: SCK == -1 --means--> PDM microphone
#endif
useInputFilter = 2; // default: DC blocker