new build flag SR_ENABLE_DEFAULT
for boards with builtin microphone (like PICO)
This commit is contained in:
@@ -1253,6 +1253,7 @@ build_flags = ${esp32_4MB_max_base.build_flags}
|
||||
-D SR_DMTYPE=1 -D I2S_SDPIN=25 -D I2S_WSPIN=15 -D I2S_CKPIN=14
|
||||
-D SR_SQUELCH=5 -D SR_GAIN=30 -D SR_FREQ_PROF=5 ; ICS-43434 specific
|
||||
; -D MCLK_PIN=0
|
||||
-D SR_ENABLE_DEFAULT ;; enable at first start - no need to manually set "enable", then reboot
|
||||
; -D WLED_USE_MY_CONFIG
|
||||
; -D WLED_DISABLE_LOXONE
|
||||
; -D WLED_DISABLE_ALEXA
|
||||
|
||||
@@ -820,7 +820,11 @@ class AudioReactive : public Usermod {
|
||||
};
|
||||
|
||||
// set your config variables to their boot default value (this can also be done in readFromConfig() or a constructor if you prefer)
|
||||
#ifdef SR_ENABLE_DEFAULT
|
||||
bool enabled = true; // WLEDMM
|
||||
#else
|
||||
bool enabled = false;
|
||||
#endif
|
||||
bool initDone = false;
|
||||
|
||||
// variables for UDP sound sync
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
// version code in format yymmddb (b = daily build)
|
||||
#define VERSION 2301170
|
||||
#define VERSION 2301180
|
||||
|
||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||
//#define WLED_USE_MY_CONFIG
|
||||
|
||||
Reference in New Issue
Block a user