Commit Graph

1084 Commits

Author SHA1 Message Date
Sergey Ryazanov
3c0158ad7d Add _MoonModules_WLED_ compatibility 2023-12-21 08:23:51 +04:00
Sergey Ryazanov
f04507b703 Add YandexWeather Usermod 2023-12-20 23:27:27 +04:00
Frank
04136791b5 sound sync: shown "v2+" when framecounter is used
v2+ = improved format (MM fork only) including sequence frameCounter.
2023-12-18 10:44:05 +01:00
Blaz Kristan
cf2f378f93 Fix for #3593 2023-12-17 22:46:02 +01:00
Frank
c68890992c mcuTemp improvements
* allow users to en/disable usermod
* limit rate of reading the sensor (once in 8 seconds)
* add slight filtering
* skip invalid readings
2023-12-16 18:49:50 +01:00
Frank
52ceabb505 LDR_Dusk_Dawn: use pinManager, check ldrPin before use (quick-fix for #3490) 2023-12-15 22:05:01 +01:00
Frank
8905992a89 code spell checking - part4 (MM specific) 2023-12-15 00:14:57 +01:00
Frank
9024872f63 code spell checking - part3 (usermods)
if you can spell Fahrenheit, you can't spell Celsius. And vice versa :-)
2023-12-14 22:22:46 +01:00
Blaž Kristan
45dc9aa62d Merge pull request #3555 from srg74/patch-1
Update readme.md
2023-12-12 14:47:59 +01:00
Troy
a01101c417 Update Animated_Staircase.h
The string "topSensorWrite" seems to have been deleted from the file in some accidental editing mishap.
2023-12-11 22:03:09 -05:00
Frank
a430e8b969 staircase quickfix
something still missing in line 378
2023-12-12 01:08:21 +01:00
Frank
4f30f69584 found a way to increase TCP stacksize (for AudioReactive UI)
we can use `-D CONFIG_ASYNC_TCP_TASK_STACK_SIZE=xxxx` to increase the stack size of AsyncWebserver - default is 8196.
This should give us a bit of headroom for new UI items.

We still need PR #94 for more savings.
2023-12-12 00:43:48 +01:00
Troy
80c257cf78 Update Animated_Staircase.h
Minor editor mishaps.
2023-12-11 16:59:20 -05:00
Troy
ccf54fe6a2 Update Animated_Staircase.h
Little oops fix. 🗡️
2023-12-11 16:50:02 -05:00
Troy
6b94c56f49 Update Animated_Staircase.h
Minor typos in comments
2023-12-11 16:41:16 -05:00
Troy
6f07958e90 Merge branch 'MoonModules:mdev' into mdev 2023-12-11 16:32:55 -05:00
TroyHacks
5ee930cff0 Merge branch 'mdev' of https://github.com/troyhacks/WLED into mdev 2023-12-11 16:32:17 -05:00
TroyHacks
cc0563dd45 Fixes for Animated_Staircase 2023-12-11 16:32:04 -05:00
Frank
782628b6aa UM battery: changed default for auto-off feature to "disabled"
Especially on 8266, the usermod can cause unexpected shut-downs in default configuration, when A0 is not connected to a battery voltage measurement circuit.
2023-12-10 14:40:36 +01:00
Frank
6cd9d80dbe small fixie for audioreactive (info page)
info page was not showing "AGC gain" when local mic was in use during "receive or local" mode.
2023-12-06 12:32:57 +01:00
Frank
d2fc1f7bf9 experimental: Souns Sync "receive or local" mode
new "Receive or Local" mode:
if UDP sound is missing or interrupted for too long, switch back to local audio input.
UDP sound resumes when a fresh packet is received again.

--> still needs testing, and even more regression testing.
2023-12-05 23:46:01 +01:00
Frank
e14d5e6975 sound sync: replace magic numbers with constants 2023-12-05 21:30:29 +01:00
Frank
7c68c14e63 FASTPATH: minimize UDP sound latency
The standard build is sending packets each 20ms, which means there are double packets (no new FFT results yet) and the max. delay between sampling and sending is up to 50ms.

* (FASTPATH only): FFT Task directly notifies UDP send when it has new data, reducing delays to the absolute minimum. this also optimizes UDP packets throughput, by avoiding duplicates.

* (FASTPATH only): receiver polling frequency is increased, to process new packets earlier (may increase CPU load)
2023-11-29 13:08:14 +01:00
Frank
38352c9d20 Sound Sync: prevent GEQ hickups and stalls
UDP transfers have some delays (measured between 2ms and 400ms). As consequence, FFT results sometimes "freeze" for a short time as no new data is arriving.
To hide these freezes, we apply the same "dynamics limiter" method as for volumeSmth.
2023-11-29 12:25:22 +01:00
Frank
1ac24439d4 AR: fastpath optimizations
Some optimizations in FASTPATH mode, to ensure that audio processing takes places as soon as new samples are arriving:
* raise fftTask prio to 4 (above async_tcp) - to ensure that other gimmicks (MQTT, IR, alexa, live preview (ws), json API, or web UI) cannot cause delays by preempting audio.
* changed the "be nice" condition in AR::loop
2023-11-27 15:56:38 +01:00
Frank
d3d08f813b sound sync: prevent sequence "roll-back" due to late packets (1->254)
this is to prevent that an "old" packet with high sequence number (before counter roll-over) gets accepted wrongly.
2023-11-16 10:55:43 +01:00
Frank
ec4bdf90af sound sync: better handling of framecounter roll-over 2023-11-15 16:21:03 +01:00
JeffWDH
63b1f6384c Add LDR sensor dusk/dawn preset control Usermod 2023-11-11 23:29:20 +01:00
TroyHacks
3ba2fe4ee0 WM8978 support for PicoDSP, etc. 2023-10-20 01:23:10 -04:00
Ewoud
294a872462 json/info: brand and product configurable by compile variables
For MM builds brand = WLEDMM
Will be used in WLED-Native - by Moustachauve

Changed in bh1750, bme280, pir, json.cpp and wled.h
2023-10-15 21:43:55 +02:00
netmindz
5476a90a69 Merge pull request #76 from MoonModules/audio-sync-framecounter
Audio sync framecounter
2023-10-09 18:28:49 +01:00
Will Tatam
f99856e863 Log packet counters 2023-10-08 19:35:26 +01:00
Frank
9ff7f56eb8 fix for partly uninitialized sound sync packets (audioreactive)
audioSyncPacket contains four "invisible" padding bytes added by the compiler. These need to be initialized to zero, as future versions of the protocol will make use of these fields.
2023-10-08 20:23:31 +02:00
Will Tatam
3b5c95b5e0 Try adding frame counter to detect duplicate or out of order sync frames 2023-10-08 14:10:48 +01:00
Frank
1fa5dc8ea8 audioreactive - spelling corrections in comments 2023-10-08 01:36:08 +02:00
Frank
b249a5af5e arduino-esp32 2.0.14 still contains the left-right-swapped bug
* use left-right-workaround up IDF 4.4.6
* fix for small typos
2023-10-08 00:03:11 +02:00
Frank
0ba8402e72 Align ADC init with WLED-SR
Feedback from SR is "it works better with analog", so let's align the driver code as much as possible.
2023-09-23 22:49:09 +02:00
Frank
7425b437da (WIP) adjust Battery usermod for "MM Style"
seems to work, but still needs more testing.
2023-09-20 00:43:03 +02:00
Frank
e28d303d4c adjust RTC usermod for "MM Style" 2023-09-19 22:54:08 +02:00
Frank
acc2d3aa10 clean up I2C pin handling in audioreactive (ES7243+ES8388)
* remove double Wire.begin() - Wire cannot be re-initialized; its already started by pinManager.joinWire()
* Only use global I2C pins; make sure that audireactive I2C settings are aligned with global I2C pins
* minor cleanup
* remove I2C pins from AudioSource::initialize()

Note to self: sdaPin, sclPin are just dummy values now, good for UI consistency, but unused otherwise. Could be removed.
2023-09-19 19:33:36 +02:00
Frank
b3d9621427 fix wrong signature of SPH0654::initialize()
* debug messages added to different initializers
* SPH0654::initialize() was having a wrong signature: uint8 instead of int8.

C++ can be a real bastard ;-)
2023-09-19 16:42:45 +02:00
Frank
89c33607bc SR_DEBUG shows stack high water marks
some debug support for showing free stack space.
2023-09-18 22:05:53 +02:00
Frank
64223dbc02 audioreactive: stack size tuning
This gives ~3KB extra free heap on -S2.
2023-09-14 18:31:24 +02:00
Frank
1ddb654bab autosave usermod: minor fix
display->canDraw() is only availeable in _ALT four-line-display usermod
2023-09-11 12:02:10 +02:00
Blaz Kristan
a26ff4ccbd Button bugfix. 2023-09-01 10:48:33 +02:00
Frank
129f5ec312 release preparations
* npm run build
* enable CI build for esp32_4MB_S and esp32S3_8MB_S (both optimized for speed)
* add animartrix to esp32S3_8MB_S
* workaround for gcc ICE (only happens with V4 framework and -O2 optimize for speed)
2023-08-27 00:54:14 +02:00
Frank
523893be02 8266 audioreactive: fix crash during OTA
* fix crash when starting OTA: `Panic core_esp8266_main.cpp:191 __yield `
* prevent sound sync reconnect during OTA
2023-08-25 16:18:37 +02:00
Frank
07d204e431 enable AGC in new installs
if SR_SQUELCH is specified by the build env, change AGC default to enabled.
2023-08-25 15:00:49 +02:00
Frank
730b0ece87 cleanup for the cleanup
eliminating a duplicate condition in `#if`
2023-08-24 22:56:02 +02:00
Frank
31badb0e66 8266 onUpdateBegin, and minor cleanup
* 8266 audioreactive: added minimal `onUpdateBegin()`
* small cleanups
2023-08-24 22:50:50 +02:00