Commit Graph

3504 Commits

Author SHA1 Message Date
Blaz Kristan
f7bfaf02a8 Possible bugfix for #3609 #3616 2023-12-29 17:46:24 +01:00
Blaz Kristan
dadafdab06 Remote preset cancles playlist 2023-12-29 17:23:46 +01:00
Blaz Kristan
738df1847a Fix for #2922 2023-12-29 17:21:43 +01:00
Frank
4bbf1ba584 sunrise/sunset: fix for ambiguous error value
sunset = 0 is a valid result, as the function result is in UTC and not local time .
Example: local time is UTC-8, local sunrise = 08:00am => getSunriseUTC()  = 0.

So we cannot use "0" for "invalid". Using UINT16_MAX resolves the problem, and even allows to simplify calculateSunriseAndSunset() a bit.
2023-12-29 17:19:53 +01:00
Frank
5e5233ce0c version bump -b28.35 2023-12-29 17:04:42 +01:00
MoonModules
7e8d570e81 Revert "Add YandexWeather Usermod" 2023-12-23 23:37:37 +01:00
Sergey Ryazanov
f04507b703 Add YandexWeather Usermod 2023-12-20 23:27:27 +04:00
Frank
58fe146a70 the experiment evolves
trying to find all the conditions when _doc[]_ should _not_ be touched ...
2023-12-19 11:28:46 +01:00
Frank
cde3298c54 MM experimental - build flag to move ALL json into PSRAM
-DALL_JSON_TO_PSRAM -DBOARD_HAS_PSRAM -D WLED_USE_PSRAM_JSON

on -S2, this *doubles* the PSRAM utilization!

before: heap used 85%, PSRAM used 13kb / 21kb
after:   heap used 60%, PSRAM used 41kb / 65kb !!
2023-12-18 20:41:11 +01:00
Frank
ca9644f04e removing my nasty debug probes; version number of today
enough of this shit ;-) no more stiff upper lips.
2023-12-18 18:33:29 +01:00
Frank
36eb520592 reduce RAM needs for -S2, user message on heap emergency actions 2023-12-18 15:39:12 +01:00
Frank
c8cee6cb51 -S2/-C3: removing stupid double protection of PSRAM pins
these pins are already forbidden in isPinOK.
In MM, trying to allocate them produces a buch of false warnings.
2023-12-18 11:34:42 +01:00
Frank
cf20c80098 #define _MoonModules_WLED_
very useful to create "runs anywhere" usermods.
2023-12-16 23:20:31 +01:00
Frank
3b6c253825 npm run build
Let's Do It
2023-12-16 23:01:25 +01:00
Frank
7624b76186 version bump 0.14.0-b28.34 2023-12-16 22:58:14 +01:00
Frank
d25835ceae experimental: trying to get the main JSON doc into PSRAM
Its not enough to declare "doc" as DynamicJsonPSRAMDocument - PSRAM is not yet initialized when "doc" is created. So we need a trick to get the main doc into PSRAM later, during WLED::setup().

Code is very experimental, may or may not work, and need more testing
-> disabled with "#if 0"
2023-12-16 22:50:05 +01:00
Frank
684bf0bd8b random palette bugfix
if random palette was used in the startup preset, all LEDs were orange until the first palette cycling happened.
This fix ensures that there is no all-orange palette initially.
2023-12-16 18:44:54 +01:00
Frank
c8b7ad749a new pin owner 2023-12-15 22:09:48 +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
075cc2d76c PSRAM update
In MM we can have PSRAM without defining WLED_USE_PSRAM
2023-12-15 00:34:05 +01:00
Frank
245c0c078d npm run build
yo-man
2023-12-15 00:18:11 +01:00
Frank
8905992a89 code spell checking - part4 (MM specific) 2023-12-15 00:14:57 +01:00
Frank
d00b32e6de bugfix - unusable pins on pico32 boards (#3573)
According to the technical manual, GPIO 16 + 17 are used for onboard flash, so cannot be used by WLED.

example buildenv:

[env:esp32_pico]
extends = env:esp32dev_qio80
board = pico32
2023-12-14 22:16:50 +01:00
Frank
627e00236a Manila Time is the same as CST (solves #3517)
PHST abbreviation added for clarity.
2023-12-14 22:15:30 +01:00
Frank
9f71f47e6f oappend robustness improvement
obuf is reset to nullptr in some cases
2023-12-14 22:15:30 +01:00
Frank
47448b8d00 comment clean-up (cosmetic) 2023-12-14 22:10:30 +01:00
Frank
4995faf594 code spell checking - part2 (dependencies) 2023-12-14 22:09:28 +01:00
Frank
ced03f1f08 code spell checking - part1 (core)
I've found a code spellchecker, so this is what can be corrected easily. Changes are only affecting comments, readme and a few user-visible strings. So no functional impact expected.
2023-12-14 22:05:55 +01:00
Frank
176158c5ba chores
npm run  build
2023-12-13 23:33:58 +01:00
Frank
3b623eeda0 Merge pull request #93 from MoonModules/Platform_upgrade
Platform upgrade - align with upstream platformio.ini
2023-12-13 22:28:00 +01:00
Frank
0a70f97780 random seed bugfix (compile errors on older platforms) 2023-12-12 15:36:31 +01:00
Blaz Kristan
88f67cbd24 FX:
- Matrix bugfix
- Lissajous metadata fix
2023-12-12 15:28:39 +01:00
Blaz Kristan
fa6e2175fe Remove re-seeding FastLED random8/random16 in FX 2023-12-12 15:21:34 +01:00
Blaž Kristan
451243c78d Merge pull request #3552 from TripleWhy/seedRandom16
Seed FastLED's RNG
2023-12-12 15:21:00 +01:00
Blaz Kristan
68dc4d11a9 Autowhite cleanup
Fix for UCS8904 hasWhite().
2023-12-12 14:48:51 +01:00
Blaz Kristan
1ac02bcd53 Bugfix #3561 2023-12-12 14:47:59 +01:00
Blaz Kristan
cc760e98a0 Fix for #3514 2023-12-12 14:46:40 +01:00
Frank
2beed4627c Merge branch 'mdev' into Platform_upgrade 2023-12-12 01:09:40 +01:00
Frank
1fb1e674f4 fix for build errors with older frameworks
hrmpf
2023-12-12 00:57:21 +01:00
Frank
8fa24c4830 npm run build 2023-12-12 00:44:03 +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
Frank
d63b716cd0 Slightly reduce json buffer size on boards with PSRAM
Found out that the main JSON 'doc' is still living in normal RAM, even when PSRAM is available... 
This results is very low RAM especially on -S2.

This change tries to find a balance between "need large json buffer" and "other features become unstable when free RAM is low".
2023-12-11 11:22:39 +01:00
Frank
61b1842aad npm run build 2023-12-10 18:08:36 +01:00
Frank
2d54393c2d start of 0.14.0-b27.33 2023-12-10 17:53:07 +01:00
Frank
bc6716fe0d Merge branch 'mdev' into Platform_upgrade 2023-12-10 17:36:43 +01:00
Frank
d2c9c9ee71 fix small typo 2023-12-10 16:50:49 +01:00
Frank
e4cb0929c3 PartyJerk: minor code style improvements
* fix some too-long tabs
*author info added
* shrunk number of blank lines
* removed unused audio variables
* colorIndex : better accuracy by first doing multiply, then divide
2023-12-10 16:49:13 +01:00
Frank
281d9b5eb1 Merge branch 'pr/67' into mdev 2023-12-10 16:01:30 +01:00
Frank
90b52b3a0d Changed some usermods to be "disabled" by default
Some usermods may cause unexpected behaviour if not configured properly.
* Battery: can cause unexpected shutdowns if no voltage measurement circuit connected
* RTC: can cause unexpected time &date changes if no RTC connected to I2C
* mcu temp: can cause hight CPU load, and may cause instabilities due to use of an "unsupported" API from espressif
2023-12-10 14:54:35 +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