Skip to content

Commit 61a7cd4

Browse files
committed
More bin awareness and add MM style bins
Changed version from 0.13.3.2-dev to 0.13.3.3 output_bins.py: start filename with WLEDSR platformio.ini: add _base and min max entries. use platform = ${esp32.platform} instead of 3.2 !! check twilightlord board!! index.css: change .modal to 17px for info tab index.js: add WLEDSR and build update.htm: remove installed bin prompt json.cpp: add releaseString in root wled.h: update version name xml.cpp: add WLEDSR
1 parent 428bf8e commit 61a7cd4

13 files changed

+2381
-2145
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wled",
3-
"version": "0.13.3.2-dev",
3+
"version": "0.13.3.3",
44
"description": "Tools for WLED project",
55
"main": "tools/cdata.js",
66
"directories": {

pio-scripts/output_bins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def bin_rename_copy(source, target, env):
3535
if release_name:
3636
_create_dirs(["release"])
3737
version = _get_cpp_define_value(env, "WLED_VERSION")
38-
release_file = "{}release{}soundReactive_WLED_{}_{}.bin".format(OUTPUT_DIR, os.path.sep, version, release_name)
38+
release_file = "{}release{}WLEDSR_{}_{}.bin".format(OUTPUT_DIR, os.path.sep, version, release_name) #WLEDSR: add SR postfix to WLED
3939
shutil.copy(str(target[0]), release_file)
4040

4141
# check if new target files exist and remove if necessary

platformio.ini

+236-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,20 @@
1616

1717
# WLED sound-reactive binaries
1818
; default_envs = soundReactive_lolin_d32
19-
default_envs = soundReactive_esp32dev, soundReactive_esp32_eth
19+
; default_envs = soundReactive_esp32dev
20+
; default_envs = soundReactive_esp32_eth
21+
22+
; WLEDSR binaries
23+
; ===================
24+
; min = USERMOD_AUDIOREACTIVE + USERMOD_CUSTOMEFFECTS
25+
; max = min + USERMOD_DALLASTEMPERATURE + USERMOD_FOUR_LINE_DISPLAY+ USERMOD_ROTARY_ENCODER_UI + USERMOD_AUTO_SAVE
26+
27+
default_envs = esp32_4MB_min, esp32_4MB_max, esp32_16MB_max, wemos_shield_esp32_4MB_max, wemos_shield_esp32_16MB_max
28+
; default_envs = esp32_4MB_min
29+
; default_envs = esp32_4MB_max ; recommended default
30+
; default_envs = esp32_16MB_max
31+
; default_envs = wemos_shield_esp32_4MB_max
32+
; default_envs = wemos_shield_esp32_16MB_max
2033

2134
# Build everything
2235
; default_envs = esp32dev, esp8285_4CH_MagicHome, codm-controller-0.6-rev2, codm-controller-0.6, esp32s2_saola, d1_mini_5CH_Shojo_PCB, d1_mini, sp501e, travis_esp8266, travis_esp32, nodemcuv2, esp32_eth, anavi_miracle_controller, esp07, esp01_1m_full, m5atom, h803wf, d1_mini_ota, heltec_wifi_kit_8, esp8285_H801, d1_mini_debug, wemos_shield_esp32, elekstube_ips
@@ -582,6 +595,228 @@ lib_deps = ${esp32.lib_deps}
582595
board_build.partitions = ${esp32.default_partitions}
583596
; board_build.partitions = tools/SoundReactive_ESP32_16MB.csv ; ESP32 16MB
584597

598+
# ------------------------------------------------------------------------------
599+
# Soundreactive configs (MoonModules style, should eventually replace above)
600+
# ------------------------------------------------------------------------------
601+
602+
; shared build flags and lib deps for minimum and maximum config
603+
[common_sr]
604+
build_flags_min =
605+
-Wall -Wformat -Woverflow -Wuninitialized -Winit-self -Warray-bounds ; enables more warnings
606+
-Wno-attributes -Wno-unused-variable -Wno-unused-function -Wno-deprecated-declarations ;disables some stupid warnings
607+
-D WLED_DISABLE_MQTT -D WLED_DISABLE_LOXONE
608+
; -D WLED_DISABLE_BLYNK ; BLYNK is only provided for backwards compatibility (no new users accepted)
609+
;-D WLED_DISABLE_BROWNOUT_DET ; enable if you get "brownout detected" errors at startup
610+
-D ABL_MILLIAMPS_DEFAULT=1500 ; 850 not enough for 1024 leds
611+
; -D WLED_USE_MY_CONFIG
612+
; -D WLED_DEBUG ; lots of generic debug messages
613+
; -D SR_DEBUG ; some extra debug messages from audioreactive
614+
615+
lib_deps_min =
616+
; https://github.com/kosme/arduinoFFT#develop @ 1.9.2 ; used for USERMOD_AUDIOREACTIVE
617+
; monitor_filters = esp32_exception_decoder ; used to show crash details
618+
619+
build_flags_max =
620+
; -D WLED_MAX_USERMODS=9 ; default only 4-6
621+
-D USERMOD_DALLASTEMPERATURE
622+
-D USE_ALT_DISPlAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
623+
-D USERMOD_FOUR_LINE_DISPLAY
624+
-D USERMOD_ROTARY_ENCODER_UI
625+
-D USERMOD_AUTO_SAVE
626+
627+
lib_deps_max =
628+
OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE
629+
olikraus/U8g2 @ ^2.28.8 ; used for USERMOD_FOUR_LINE_DISPLAY
630+
631+
; end of common
632+
633+
; base entries (without WLED_RELEASE_NAME)
634+
635+
; esp32_4MB_min_base: basis for min entries and for max_base
636+
[env:esp32_4MB_min_base]
637+
board = esp32dev
638+
platform = ${esp32.platform}
639+
upload_speed = 460800 ; or 921600
640+
platform_packages = ${esp32.platform_packages}
641+
build_unflags = ${common.build_unflags}
642+
build_flags = ${common.build_flags_esp32} ${common_sr.build_flags_min}
643+
lib_deps = ${esp32.lib_deps} ${common_sr.lib_deps_min}
644+
board_build.partitions = ${esp32.default_partitions}
645+
board_build.f_flash = 80000000L ; use full 80MHz speed for flash (default = 40Mhz)
646+
board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad i/o)
647+
648+
;esp32_4MB_max_base: basis for max entries, uses esp32_4MB_min_base, build_flags_max and lib_deps_max
649+
[env:esp32_4MB_max_base]
650+
extends = env:esp32_4MB_min_base
651+
build_flags = ${env:esp32_4MB_min_base.build_flags} ${common_sr.build_flags_max}
652+
lib_deps = ${env:esp32_4MB_min_base.lib_deps} ${common_sr.lib_deps_max}
653+
board_build.partitions = ${env:esp32_4MB_min_base.board_build.partitions}
654+
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
655+
656+
; ;esp32_4MB_V4_max_base: basis for V4 entries, uses build_flags_min, build_flags_max, lib_deps_min and lib_deps_max
657+
; [env:esp32_4MB_V4_max_base]
658+
; board = esp32dev
659+
; upload_speed = 460800 ; or 921600
660+
; platform = ${esp32.platformV4}
661+
; platform_packages = ${esp32.platformV4_packages}
662+
; build_unflags = ${common.build_unflags}
663+
; build_flags = ${common.build_flags} ${esp32.build_flagsV4} ${common_sr.build_flags_min} ${common_sr.build_flags_max}
664+
; -Wno-misleading-indentation
665+
; lib_deps = ${esp32.lib_depsV4} ${common_sr.lib_deps_min} ${common_sr.lib_deps_max}
666+
; board_build.partitions = ${esp32.default_partitions}
667+
; board_build.f_flash = 80000000L ; use full 80MHz speed for flash (default = 40Mhz)
668+
; board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad i/o)
669+
670+
; end of base entries
671+
672+
; bin entries (with WLED_RELEASE_NAME)
673+
674+
; esp32_4MB_min: bin entry, uses esp32_4MB_min_base
675+
[env:esp32_4MB_min]
676+
extends = env:esp32_4MB_min_base
677+
build_flags = ${env:esp32_4MB_min_base.build_flags}
678+
-D WLED_RELEASE_NAME=esp32_4MB_min ; This will be included in the firmware.bin filename
679+
; RAM: [== ] 24.1% (used 78900 bytes from 327680 bytes)
680+
; Flash: [======== ] 83.7% (used 1315729 bytes from 1572864 bytes)
681+
682+
; esp32_4MB_max: bin entry, uses esp32_4MB_max_base
683+
[env:esp32_4MB_max]
684+
extends = env:esp32_4MB_max_base
685+
build_flags = ${env:esp32_4MB_max_base.build_flags}
686+
-D WLED_RELEASE_NAME=esp32_4MB_max ; This will be included in the firmware.bin filename
687+
; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes)
688+
; Flash: [========= ] 88.6% (used 1393397 bytes from 1572864 bytes)
689+
690+
; esp32_16MB_max: bin entry, uses esp32_4MB_max_base and adds 16MB settings
691+
[env:esp32_16MB_max]
692+
extends = env:esp32_4MB_max_base
693+
; board = esp32_twilord ; "TwilightLord" ESP32 with 16MB Flash
694+
board_build.partitions = tools/WLED_ESP32_16MB.csv ; for esp32_twilord with 16MB flash
695+
build_flags = ${env:esp32_4MB_max_base.build_flags}
696+
-D WLED_RELEASE_NAME=esp32_16MB_max ; This will be included in the firmware.bin filename
697+
; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes)
698+
; Flash: [======= ] 66.4% (used 1393397 bytes from 2097152 bytes)
699+
700+
; esp8266_4MB_min: bin entry for 8266, with 2D (WIP)
701+
; [env:esp8266_4MB_min]
702+
; extends = env:d1_mini
703+
; upload_speed = 460800 ;115200
704+
; build_flags = ${common.build_flags_esp8266}
705+
; -D WLED_RELEASE_NAME=esp8266_4MB_min ; This will be included in the firmware.bin filename
706+
; ; -D WLED_DEBUG
707+
; -D WLED_DISABLE_ALEXA
708+
; -D WLED_DISABLE_BLYNK
709+
; -D WLED_DISABLE_HUESYNC
710+
; ; -D WLED_DISABLE_2D
711+
; ; -D USERMOD_AUDIOREACTIVE
712+
; -UWLED_USE_MY_CONFIG
713+
; ; monitor_filters = esp8266_exception_decoder
714+
; ; RAM: [====== ] 58.7% (used 48056 bytes from 81920 bytes)
715+
; ; Flash: [======== ] 75.7% (used 790428 bytes from 1044464 bytes)
716+
717+
# ------------------------------------------------------------------------------
718+
# MoonModules configs for IDF V4.4.x
719+
# ------------------------------------------------------------------------------
720+
721+
;; experiemtal environment for boards with PSRAM.
722+
;; Warning: the build-in LittleFS seems to be "slightly different" from Lorol LittleFS.
723+
;; When upgrading to the new framework, it might be necessary to first do a chip erase (make sure you have a backup of cfg.json and presets.json)
724+
;; also SpiffsEditor (Async Webserver) has known problems in IDF4.4.x
725+
726+
; ; esp32_4MB_PSRAM_max: bin entry, uses esp32_4MB_V4_max_base and adds specific settings
727+
; [env:esp32_4MB_PSRAM_max]
728+
; extends = env:esp32_4MB_V4_max_base
729+
; board = lolin_d32_pro
730+
; ;board = esp32cam
731+
; build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
732+
; -D WLED_RELEASE_NAME=esp32_4MB_PSRAM_max
733+
; -D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BLYNK #-D WLED_DISABLE_BROWNOUT_DET
734+
; -D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup
735+
; -D WLED_USE_PSRAM
736+
; ; RAM: [== ] 24.8% (used 81424 bytes from 327680 bytes)
737+
; ; Flash: [==========] 99.8% (used 1570457 bytes from 1572864 bytes)
738+
; ; 99.8% !!!!
739+
; -D WLED_DISABLE_LOXONE ; FLASH 1272 bytes
740+
; -D WLED_DISABLE_ALEXA ; RAM 116 bytes; FLASH 13524 bytes
741+
; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
742+
; -D WLED_DISABLE_HUESYNC ;RAM 122 bytes; FLASH 6308 bytes
743+
; ; RAM: [== ] 24.7% (used 80948 bytes from 327680 bytes)
744+
; ; Flash: [==========] 97.4% (used 1531857 bytes from 1572864 bytes)
745+
; ;-D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes
746+
; ; -D WLED_DEBUG
747+
; ; -D SR_DEBUG
748+
; ; -D MIC_LOGGER
749+
750+
; ; esp32S3_8MB_max: bin entry, uses esp32_4MB_V4_max_base and adds specific settings. Override of lib_deps using lib_deps_min and lib_deps_max
751+
; [env:esp32S3_8MB_max]
752+
; extends = env:esp32_4MB_V4_max_base
753+
; board = esp32-s3-devkitc-1
754+
; build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
755+
; -D WLED_RELEASE_NAME=esp32S3_8MB_max
756+
; -D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=0 -D ARDUINO_USB_MSC_ON_BOOT=0 -D ARDUINO_USB_DFU_ON_BOOT=0
757+
; -D WLED_WATCHDOG_TIMEOUT=0
758+
; -D WLED_DISABLE_LOXONE ; FLASH 1272 bytes
759+
; -D WLED_DISABLE_ALEXA ; RAM 116 bytes; FLASH 13524 bytes
760+
; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
761+
; -D WLED_DISABLE_HUESYNC ;RAM 122 bytes; FLASH 6308 bytes
762+
; -D LEDPIN=4
763+
; -D STATUSLED=39
764+
; -D BTNPIN=-1
765+
; -D RLYPIN=-1
766+
; -D IRPIN=-1
767+
; -D HW_PIN_SDA=40
768+
; -D HW_PIN_SCL=41
769+
; -D AUDIOPIN=-1
770+
; -D I2S_SDPIN=16
771+
; -D I2S_CKPIN=17
772+
; -D I2S_WSPIN=47
773+
; -D ES7243_SDAPIN=8
774+
; -D ES7243_SCLPIN=18
775+
; ; -D WLED_DEBUG
776+
; ; -D SR_DEBUG
777+
; ; -D MIC_LOGGER
778+
; lib_deps = ${esp32s3.lib_deps} ${common_sr.lib_deps_min} ${common_sr.lib_deps_max}
779+
; board_build.partitions = tools/WLED_ESP32_8MB.csv
780+
; board_build.flash_mode = qio
781+
; ; RAM: [== ] 24.7% (used 80984 bytes from 327680 bytes)
782+
; ; Flash: [======= ] 69.0% (used 1447873 bytes from 2097152 bytes)
783+
784+
785+
# ------------------------------------------------------------------------------
786+
# custom board configurations
787+
# ------------------------------------------------------------------------------
788+
789+
;wemos_shield_esp32_4MB_max_base: base entry, uses esp32_4MB_max_base
790+
[env:wemos_shield_esp32_4MB_max_base]
791+
extends = env:esp32_4MB_max_base
792+
build_flags = ${env:esp32_4MB_max_base.build_flags}
793+
-D LEDPIN=16
794+
-D RLYPIN=19
795+
-D BTNPIN=17
796+
-D IRPIN=18
797+
-D AUDIOPIN=-1 -D DMTYPE=1 -D I2S_SDPIN=32 -D I2S_WSPIN=15 -D I2S_CKPIN=14
798+
-D TEMPERATURE_PIN=23
799+
-D FLD_PIN_SCL=22 -D FLD_PIN_SDA=21
800+
; -D ENCODER_DT_PIN=18 -D ENCODER_CLK_PIN=5 -D ENCODER_SW_PIN=19
801+
802+
;wemos_shield_esp32_4MB_max: bin entry, uses wemos_shield_esp32_4MB_max_base
803+
[env:wemos_shield_esp32_4MB_max]
804+
extends = env:wemos_shield_esp32_4MB_max_base
805+
build_flags = ${env:wemos_shield_esp32_4MB_max_base.build_flags}
806+
-D WLED_RELEASE_NAME=wemos_shield_esp32_4MB_max ; This will be included in the firmware.bin filename
807+
; RAM: [== ] 24.4% (used 79820 bytes from 327680 bytes)
808+
; Flash: [========= ] 88.6% (used 1393421 bytes from 1572864 bytes)
809+
810+
;wemos_shield_esp32_16MB_max: bin entry, uses wemos_shield_esp32_4MB_max_base and adds 16MB settings
811+
[env:wemos_shield_esp32_16MB_max]
812+
extends = env:wemos_shield_esp32_4MB_max_base
813+
; board = esp32_twilord ; "TwilightLord" ESP32 with 16MB Flash
814+
board_build.partitions = tools/WLED_ESP32_16MB.csv ; for esp32_twilord with 16MB flash
815+
build_flags = ${env:wemos_shield_esp32_4MB_max_base.build_flags}
816+
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_max ; This will be included in the firmware.bin filename
817+
; RAM: [== ] 24.4% (used 79820 bytes from 327680 bytes)
818+
; Flash: [======= ] 66.4% (used 1393421 bytes from 2097152 bytes)
819+
585820
[env:m5atom]
586821
board = esp32dev
587822
build_unflags = ${common.build_unflags}

wled00/data/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Effect Speed */
386386
transform: translateY(100%);
387387
transition: transform 0.4s;
388388
padding: 8px;
389-
font-size: 20px;
389+
font-size: 17px; /* WLEDSR: smaller is better */
390390
overflow: auto;
391391
}
392392

wled00/data/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ function populateInfo(i)
599599
if (i.ver.startsWith("0.13.")) vcn = "Toki+SR";
600600
if (i.cn) vcn = i.cn;
601601

602-
cn += `v${i.ver} "${vcn}"<br><br><table class="infot">
603-
${inforow("SR Build",i.vid)}
602+
// cn += `v${i.ver} "${vcn}"<br><br><table class="infot">
603+
cn += `v${i.ver} &nbsp;<i>"${vcn}"</i><p>(WLEDSR_${i.ver}_${i.rel}.bin)</p><p><em>build ${i.vid}</em></p><table class="infot">
604604
<!-- WLEDSR begin-->
605605
${inforow("Audio Source",i.audioType,i.audioStatus)}
606606
${i.audioWarning?inforow1("<em>Please "+i.audioWarning+"(s) !</em>"):""}

wled00/data/update.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<body onload="GetV()">
1616
<h2>Sound Reactive WLED Software Update</h2>
1717
<form method='POST' action='/update' id='uf' enctype='multipart/form-data' onsubmit="U()">
18-
Installed SR bin: <span class="sip">##VERSION##</span><br> <!--WLEDSR: show bin name-->
18+
<span class="sip">##VERSION##</span><br> <!--WLEDSR: show bin name-->
1919
Download the latest binary: <a href="https://github.com/atuline/WLED/releases" target="_blank">
2020
<img src="https://img.shields.io/github/release/atuline/WLED.svg?style=flat-square"></a><br>
2121
<input type='file' name='update' required><br> <!--should have accept='.bin', but it prevents file upload from android app-->

wled00/html_other.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ const char PAGE_update[] PROGMEM = R"=====(<!DOCTYPE html><html><head><meta cont
4040
function B(){window.history.back()}function U(){document.getElementById("uf").style.display="none",document.getElementById("msg").style.display="block"}function GetV() {var d=document;
4141
%CSS%%SCSS%</head><body onload="GetV()">
4242
<h2>Sound Reactive WLED Software Update</h2><form method="POST"
43-
action="/update" id="uf" enctype="multipart/form-data" onsubmit="U()">
44-
Installed SR bin: <span class="sip">0.13.3.2-dev</span><br>
45-
Download the latest binary: <a href="https://github.com/atuline/WLED/releases"
46-
target="_blank"><img
43+
action="/update" id="uf" enctype="multipart/form-data" onsubmit="U()"><span
44+
class="sip">0.13.3.3</span><br>Download the latest binary: <a
45+
href="https://github.com/atuline/WLED/releases" target="_blank"><img
4746
src="https://img.shields.io/github/release/atuline/WLED.svg?style=flat-square">
4847
</a><br><input type="file" name="update" required><br><button type="submit">
4948
Update!</button><br><button type="button" onclick="B()">Back</button></form><div

wled00/html_settings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ onclick='uploadFile(d.Sf.data2,"/cfg.json")'><br></div><div style="color:#fa0">
518518
Incorrect configuration may require a factory reset or re-flashing of your ESP.
519519
</div>For security reasons, passwords are not backed up.<h3>About</h3><a
520520
href="https://github.com/atuline/WLED/" target="_blank">WLED</a>
521-
SR version 0.13.3.2-dev<br><br><a
521+
SR version 0.13.3.3<br><br><a
522522
href="https://github.com/atuline/WLED/wiki/Contributors-and-credits"
523523
target="_blank">Contributors, dependencies and special thanks</a><br>
524524
A huge thank you to everyone who helped me create WLED!<br><br>

0 commit comments

Comments
 (0)