Commit Graph

3894 Commits

Author SHA1 Message Date
Ewoud
ab8b260608 Segment visualization fix show fx name 2023-02-15 18:13:30 +01:00
Ewoud
b6024d2ed0 Add Total LEDS to 2D settings page 2023-02-15 17:07:19 +01:00
Ewoud
6e187dd5aa Peek in segment tab
Move peek 2D functionality to peek.js

FX_fcn.cpp: always erase customMappingTable if non existent ledmap

wled_server.cpp: add peek.js

index.js:
- add canvasPeek
- change resize of canvas
2023-02-15 12:41:15 +01:00
Ewoud
515c872770 Fix WLED_DISABLE_2D compile error 2023-02-15 10:59:14 +01:00
Ewoud
4ed1473bcc Ledmap not found no toast 2023-02-14 22:17:11 +01:00
Ewoud
def3cde8b8 Bugfix 2D without ledmap
index.js: remove showToast when ledmap not found

FX_2DFCN: Check on ledmapsize >0 for doing logical and physical mapping
2023-02-14 21:47:25 +01:00
Ewoud
f62f94270d Add esp01_1MB_min 2023-02-14 19:26:56 +01:00
Ewoud
c9966c9d8f pio.ini: align non MM part with upstream 2023-02-14 18:40:02 +01:00
Ewoud
04deea9b39 PlatformIO: move MM envs to bottom 2023-02-14 18:29:38 +01:00
Ewoud
d8f625beea show only ledmap pixels, show bus lengths in segment visualization
index.js: segment visualization:
- max width if no pc
- don't show nr if only one segment
- Ledmap nr color depending on bus output

FX_2Dfcn.cpp / FX_fcn.cpp
- don't show ledmap -1 pixels

json.cpp: add busses.length to outputs

ws.cpp: peek back to strip.gPC only
2023-02-14 17:22:58 +01:00
Ewoud
476105a267 Add serpentine to default peek + version date 2023-02-13 19:14:11 +01:00
Ewoud
9ba9a61af5 Add support for default ledmap.json + peek with ledmap if default panel
Thx to @Troy#2642
2023-02-13 19:09:02 +01:00
Ewoud
0d0f6b5e30 refactor resetSegments to work properly
add boundsOnly
2023-02-13 15:54:18 +01:00
Ewoud
d215633578 enumerateLedmaps and deserializeMap bugfix
Also xOffset and yOffset 8 instead of 16 bit
2023-02-13 14:22:45 +01:00
Ewoud
6c52a3d940 Segment name for ledmap names
index.js:
- add ledmapFileNames array and fill with lm.segmentname.json names
- use name in dropdowns and in loadmap

fcn_declare and util.cpp: move enumerateLedmaps to FX.h and FX_fcn.cpp
FX_fcn.cpp: deserializemap: use segment name lednames
2023-02-12 11:28:38 +01:00
Ewoud
b02192e359 Ledmaps improvements
index.js:
- add global ledmap variable
- updateLen conditional draw parameter
- draw black out not mapped

json.cpp: 
- add "ledmap" in (de)serializeState (not info)
- use loadedLedmap

wled.cpp/h:
- loadLedMap is boolean, use loadedLedmap for ledmap
- show * password

liveviewws2D: colorAmp
settings2D: add id and name, change max to 255
2023-02-11 20:45:21 +01:00
Ewoud
81322a31fe Merge remote-tracking branch 'upstream/main' into mdev 2023-02-10 17:14:50 +01:00
Ewoud
d42f24207d Ledmaps bugfix 2023-02-10 16:57:07 +01:00
Ewoud
40e82166bc Ledmap persistent/consistent and showing in segment graph +small changes
pio.ini: remove ping pong clock from _all
ce.js: change on error handling
liveviewws2D: add colorAdjust
json.cpp: ledmaps will be stored in json/info 
settings_2D: fieldChange at loadJS

FX_(2D)fcn.cpp:
- loadedLedmap default 0 (default)
- loadedLedmap active then only use if index <size

index.js:
- global ledmap set to active value
- draw to drawSegments
- gradient colored leds
- add ledmaps to graphics
- add fetchAndExecute (from custom effects), used by drawSegments to get ledmap contents
- graphics bigger in non pc mode
2023-02-10 16:26:35 +01:00
Blaž Kristan
f2459ea904 Add ability to use SHT temp. sensor in PWM fan 2023-02-10 09:33:27 +01:00
Ulrich Baumann
e2215ced34 allow alternative northern style ("viertel vor ..." instead of (#3085)
"dreiviertel ..")

Co-authored-by: Uli Baumann <github@uli-baumann.de>
2023-02-09 00:23:53 +01:00
Blaz Kristan
b14c8e82a0 Bugfix.
- correct WLED_DEBUG_PORT override
2023-02-08 10:25:59 +01:00
Blaz Kristan
e7d50d2614 Bugfix.
- respect net debug on/off state
2023-02-08 10:18:41 +01:00
Ewoud
26f97f4dc6 Fix resetsegments on 2D change: only change width and height 2023-02-07 13:27:30 +01:00
Ewoud
38cd794563 Segment graphics: add grouping and spacing 2023-02-07 10:17:26 +01:00
Ewoud
8a8e834ace Segment graphics: bug fix to support (mixed) 1D 2023-02-07 08:52:58 +01:00
Ewoud
892861c20e Segment graphics bug fix
Disable for 1D (until we have a 1D graphic)
2023-02-06 22:39:26 +01:00
Ewoud
3e481abeb3 Moving to 0.14.0-b1.18 2023-02-06 21:13:13 +01:00
Ewoud
3cf35f85f3 Merge remote-tracking branch 'upstream/main' into mdev 2023-02-06 21:06:13 +01:00
Ewoud
2a890f5e1e Segments: add graphical display of segments part 1
Custom Effects: Add 🥚🥚 for HBaas effect presons

Index.js/htm:
- add ctx (context)
- add hidden input field fx
- add draw() function for graphics (segment bounds, mirror/reverse/transpose/leds/Nr/FX

settings2D
- move ctx init to draw
- set space 0
- center text
2023-02-06 19:57:25 +01:00
Blaž Kristan
bca92883d2 Merge pull request #3081 from Aircoookie/usermod-enhance
Usermod enhancements
2023-02-06 07:25:24 +01:00
dependabot[bot]
ed865e38de Bump http-cache-semantics from 4.1.0 to 4.1.1 (#3076)
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-05 23:52:48 +01:00
Blaž Kristan
dec45109d3 Refactor busmgr (#3079)
* Refactor bus manager.

* Fix for net debug

* Fix 8266 compile

* Move bus static members to proper cpp

---------

Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2023-02-05 23:48:43 +01:00
Blaz Kristan
48c267c5c1 Bugfix. 2023-02-05 17:57:22 +01:00
Ewoud
f71e6262f6 2D setup: add graphical display of panels
FX.h, cfg.cpp, set.cpp, xml.cpp:
- add basic or advanced: bOrA / ba (mpv, mph done earlier)
- add 1st led: panelO / pbl, prl, pvl, psl

settings_2D.htm
- add canvas / context
- addPanel: 1st LED: copy from Matrix setup and draw() on all fields
2023-02-05 16:22:40 +01:00
Blaz Kristan
c041d39cab Usermod enhancements
- added onStateChange() callback
- added examples & comments to usermod_v2_example.h
- PIR sensor cancels countdown on state change
2023-02-05 12:23:05 +01:00
Blaz Kristan
52c18e77ae Compile fix for net_debug 2023-02-04 23:59:28 +01:00
Ewoud
a5607a9901 serializePalettes fix of fix of fix 2023-02-04 14:16:31 +01:00
Ewoud
119c347ffa Fix getPaletteCount bug fix bug 2023-02-04 12:52:34 +01:00
Ewoud
becf87ea0b Fix getPaletteCount bug
+ correct version to 0.14.0-b1.17
2023-02-04 12:41:13 +01:00
Blaz Kristan
52a189cdd2 Playlist bugfix.
- another attempt at #3058
2023-02-04 10:56:07 +01:00
Frank
e1f14628b0 4LD + rotary hotfix: corrupted display on esp32
This s a temporary fix for display problems (corrupted display, sometimes crash). These problems exists since 0.14. as display updates are now running in a separate task.
The fix is still incomplete.

If nothing else works, you can use the 0.13.x behavior by compiling with `-D FLD_ESP32_NO_THREADS`

* fixing a few unsafe string operations and non-initialized strings
* fix max length for "two lines" names
* make sure that display methods are exiting early if display is not configured
* rotary_ALT : additional checks to ensure that drawing on the display does not overlap with redraw
* added some safeguards to prevent overlapping display redraw operations
--> Actually this should use semaphore/mutex instead of global booleans -> Still on my toDo list.
2023-02-02 18:37:13 +01:00
Blaž Kristan
dca8a47da8 Dual mode 2D + 1D with auto segment creation. (#3060)
* Dual mode 2D + 1D with auto segment creation.

* Bugfix.
- stop when seglen
2023-02-01 19:30:56 +01:00
Christian Schwinne
6be9317fd7 Merge pull request #3037 from Aircoookie/indentation
Whitespace/indentation cleanup.
2023-02-01 16:07:30 +01:00
Christian Schwinne
bee99ca8d0 Merge branch 'main' into indentation 2023-02-01 15:57:58 +01:00
cschwinne
48dc89cf13 Fix merge conflict (apply changes from 901ce23) 2023-02-01 15:55:44 +01:00
Blaž Kristan
fc7f609234 Disable 1D/2D mapping for individual pixel control 2023-01-31 12:49:36 +01:00
Ewoud
b01893e8fe Random Cycle ☾, ☾ symbol on MM specific features
Adding ☾ symbol on MM specific features
- Custom Effect
- Games
- Generate presets
- Adjusted effects (Stream, Stream 2, GoL, Lissajous, Waverly, GEQ
- Palettes: Random Cycle, Audio Responsive

Bugfix ledmap 2D: delete table
Adding Random Cycle ☾: continues tranisition
2023-01-31 10:40:41 +01:00
Blaz Kristan
0bed9b3c2e FX tweak.
- Fireworks 1D
2023-01-30 23:10:45 +01:00
Blaz Kristan
31fa73518b Bugfix. #3064 2023-01-30 17:11:14 +01:00