Damian Schneider
c8f48168b4
fixed touch buttons for ESP32 S2 and S3
...
touch is implemented differently on S2 and S3, these changes make touch buttons work on S2 and S3
2024-03-04 14:38:37 +01:00
Blaz Kristan
41129cf379
Sqeeze every byte
2024-02-25 17:08:01 +01:00
Blaz Kristan
95e2e574b8
ESP-NOW packet modification
...
- include up to 5 segments in 1st packet
- header contains total number of packets (instead of segments)
web server code reorganise
2024-02-15 20:40:55 +01:00
Blaz Kristan
66d9e8c038
Merge branch '0_15' into harmonic-random-palette-generator
2024-02-06 10:53:44 +01:00
Damian Schneider
ca05aa84ff
changed randomness and added optimizations
...
-added fully random palette function ('the old way', currently just used for initialization)
-changed randomness values to make it a little less random
-added 10% chance for pastel color palette
-now using swap() from std library for shuffeling
-changed function name
-moved update check from loadPalette() to handleRandomPalette() saving CPU cycles
2024-01-30 22:28:40 +01:00
Damian Schneider
f5ed757780
added some minor fixes
...
-fastled flags
-gamma correction
-pass by reference instead of pointer
2024-01-29 20:47:09 +01:00
Damian Schneider
bccc97d25f
fixed include, bugfix in random palette handling
2024-01-29 20:47:08 +01:00
Damian Schneider
a9bcc75733
added function to generate random palette based on harmonic color theory
2024-01-29 20:47:08 +01:00
Blaz Kristan
bfb217c203
Implement multiple WiFi
...
- similar to #3705
- solves #2845 , #2974 , #852 , #1228
2024-01-21 00:30:15 +01:00
Christian Schwinne
9378fc7276
Merge remote-tracking branch 'origin/0_15' into gif
2024-01-16 21:53:08 +01:00
Will Miles
6382d2b730
Add C++-style guard class for JSON Buffer lock
...
Add JSONBufferGuard, an RAII lock guard class for JSONBufferLock
analogous to std::lock_guard. This permits binding the guard to a scope,
such as an object life cycle or function body, guaranteeing that the
lock will be released when the scope exits.
2024-01-06 10:05:18 -05:00
Blaz Kristan
67ae716c60
JSON HTTP error handling
2023-12-12 15:45:57 +01:00
Blaz Kristan
2b616b688d
Implement global JSON API boolean toggle.
2023-11-06 20:08:45 +01:00
Blaz Kristan
cc68e6b6e6
Squashed commit of the following:
...
Remove sync receive
Disallow 2D effects on non-2D segments
Optimisations
Sync clarification
AR palettes
Return of 2 audio simulations
Bugfix in sync #3344
- remove excessive segments
- ignore inactive segments if not syncing bounds
- send UDP/WS on segment change
- pop_back() when removing last segment
Add pairing support for ESP-NOW sync
Reduce string RAM footprint
UDP parse optimisation
Make WizMote work with sync.
ESP-NOW wireless sync POC.
- caveat: devices have to be on the same channel
- clashes with WizMote handling ATM
2023-09-10 18:52:14 +02:00
Aircoookie
2f9c126d34
GIF Error codes
2023-07-31 18:13:03 +02:00
cschwinne
c16462a0ce
Experimental GIF support
2023-06-30 23:59:29 +02:00
Christian Schwinne
481bd6f57a
Add WiFi network scan RPC command to Improv Serial ( #3271 )
2023-06-27 01:51:44 +02:00
Clayton Sims
e4ee392c27
Support for ESP-NOW Wireless Remote Control ( #3237 )
...
* Initial checkin for ESP-NOW remote feature
* cleanup irrelevant comment
* don't bring in espnow package includes when feature disabled
* Formatting and removing inaccurate call mode hardcoding
* Fork ESP Now code by platform (8266 v. esp32)
* compiled html update
* Disable ESP-NOW remote by default on ESP32 until tested
* Enable ESP-NOW remote for ESP32
* Rename ESP NOW define
---------
Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2023-06-22 10:06:19 +02:00
Aircoookie
dd9da2853a
Support settings pin unlock via JSON
...
Also supports locking by providing any incorrect pin
2023-06-14 11:53:39 +02:00
Blaz Kristan
3ca58ee65f
Pin dropdowns POC.
...
NeoPixelBusGammaMethod POC.
PixelMagic POC.
Button reassign POC.
2023-06-10 20:43:27 +02:00
Blaz Kristan
82e448de7c
Beta-3 changes
...
- remove I2C init from usermods
- PCF8574 (&co) port expander support
- refactor PIR & Rotary encoder & 4LD
- reboot race condition
- optimisations
2023-05-30 19:36:14 +02:00
Blaz Kristan
763b64cc57
Combat low memory condition on ESP8266.
2023-03-10 15:20:50 +01:00
Christian Schwinne
220718cb58
Remove Blynk support ( #3102 )
...
Change default palette for Railway to Colors 1 and 2
2023-02-21 17:07:32 +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
d78bef72ea
Disable MQTT more.
...
Disable Alexa more.
2023-01-12 20:35:34 +01:00
Blaž Kristan
506b6b51ce
whitespace cleanup
2023-01-06 09:24:29 +01:00
Blaz Kristan
c47d6cffa8
Missing presets.json on factory reset bugfix.
...
Clarification on loading ledmaps in UI.
Added manual ledmap loading.
2022-11-16 20:55:21 +01:00
siggel
82af52a0bc
Feature/nine additional alexa devices for presets ( #2787 )
...
* add 9 further alexa devices for calling presets 1-9
* use preset names from WLED for Alexa preset device names instead of hardcoded names
* update readme and version
* call alexaInit() at end of savePreset() to keep Alexa in sync with the preset IDs and names
* This reverts commit f8db06c7c5
.
* change order to configured Alexa WLED name first, preset names afterwards
* fix status of devices when shown within Alexa, i.e. switching one preset on switches others off (except for alexaInvocationName)
* re-add getPresetName() after merge with master
* restore original readme for pull request
* restore original platformio.ini for pull request
* Logic simplification
* Pass string by reference
* Added number of presets check
* fix alexaInit() in case of alexaNumPresets==0
Co-authored-by: Christian Schwinne <dev.aircoookie@gmail.com>
2022-10-25 23:42:26 +02:00
Blaz Kristan
7642f8d702
Async preset saving.
...
Minor bugfixes.
2022-10-08 18:25:51 +02:00
4lloyd
d0189b0719
Add ArtPoll support ( #2615 )
...
* Add ArtPoll support
* Improved calculations
* Add support for legacy DMX start address 0
* Small efficiency improvement
* ESP8266 doesn't like yield
* Optimized ArtPoll memory use
Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2022-09-22 20:34:46 +02:00
Blaz Kristan
7824f9ee63
Remove sync preset loading (ugly core check)
...
WS buffer check for ESP32-S2
Delay for Serial init on CDC USB
2022-09-20 21:17:44 +02:00
Blaz Kristan
1cb3ab82c2
Reduction of flicering on web access (info)
2022-08-10 20:53:11 +02:00
Blaz Kristan
d328db543e
Bugfixes.
...
- gamma on *Color palettes
- gamma moved out of WS2812FX
- palette fade (JSON) fix
2022-07-30 23:58:29 +02:00
Blaz Kristan
1abf0fc134
Deprecate EEPROM support (compile time option).
2022-07-30 11:04:04 +02:00
Blaz Kristan
78aad924c5
Bugfixes.
...
- moved simulateSound() to util
- effect fixes (name changes)
- mapping fixes
- default values fixes
- UI fixes
2022-07-25 21:31:50 +02:00
Blaz Kristan
8e9637f6d4
Default effect values.
2022-07-23 22:00:19 +02:00
Blaž Kristan
35250677b9
Prevent I2S use for LEDs w/ Audioreactive on ESP32
2022-07-22 08:59:04 +02:00
Blaz Kristan
64fd207533
Refactoring WS2812FX class.
...
- effect functions no longer part of class
- methods to access private members
- separate Segment, Segment_runtime, ColorTransition from WS2812FX
2022-07-06 13:13:54 +02:00
Blaz Kristan
8c759cb65a
Usermod config info & data.
2022-06-11 18:55:23 +02:00
Blaz Kristan
562a206508
It compiles!
...
Cleaned (and possibly broken) AudioSource
Added:
- usermod notification about update
- strip.getMinShowDelay()
- pin manager updates
Changed:
- data exchange
2022-06-11 00:50:29 +02:00
Blaz Kristan
dd584e929f
Added audioreactive to usermod_list
...
Formatting in usermod
2022-06-10 16:37:55 +02:00
Blaz Kristan
184ff7a3b3
Audioreactive usermod.
2022-06-08 21:14:01 +02:00
Blaz Kristan
f1a1b89d13
Fixes.
...
- correct preset cycling
- updated rotary encoder preset selection
2022-06-03 22:22:18 +02:00
Blaz Kristan
17be0a2c12
Enhance rotary encoder with custom sliders.
...
Soft watchdog timer (by poelzi)
2022-05-24 13:45:35 +02:00
Blaz Kristan
ba3555a66f
2D Game of Life update.
...
Added crc16().
Reduced errorToast popup time.
Fixed drawLine() incorrect uint16_t use and added leds[] support.
2022-05-20 14:48:40 +02:00
Blaz Kristan
0f6b1e4ae1
Synchronus applyPreset() from HTTP JSON API call.
...
Bugfix for HTTP API preset.
WS multiple broadcast fix.
Turning segment on/off will not reset currentPreset/cause stateChanged.
2022-04-16 16:28:43 +02:00
Blaz Kristan
081f211231
Merge branch 'master' into merge-master
2022-04-04 20:52:42 +02:00
cschwinne
958cd35e21
Live mainseg improvements
...
Make override work in mainseg mode
Move unfreeze on turn on from UI to JSON parser
Fix mainseg not unfreezing on timeout
2022-04-01 00:59:19 +02:00
Blaž Kristan
0234017ca1
Merge branch 'master' into master-merge
2022-03-15 09:55:23 +01:00
cschwinne
9552784e72
Remove persistent argument from savePreset()
...
(fixes temp preset not applicable by APIs)
Default to 5Mhz hardware SPI driving (#2558 )
2022-03-14 20:53:00 +01:00
Blaž Kristan
e561304645
Merge branch 'master' into master-merge
2022-03-07 09:44:35 +01:00
cschwinne
a2c8796e04
Replaced native Cronixie support with usermod
2022-03-06 23:47:36 +01:00
Blaz Kristan
9fd26fa574
Settings PIN protection.
2022-03-01 23:37:28 +01:00
Blaz Kristan
4ce557a829
Multiple fixes:
...
- ability so select mainseg (UI)
- changed preset sort (UI)
- IR40 white +/- fix
- IR repeatable actions fix
- minor UI CSS change
- removed unnecessary color functions
2022-02-27 22:19:05 +01:00
Blaz Kristan
4d10c9de95
Removed unnecessary set call.
...
Fixed incorrect colorUpdated call.
Fixed white +/- in IR40 remote.
2022-02-27 16:18:37 +01:00
Blaž Kristan
7beae93441
IR rewrite. ( #2561 )
...
* IR rewrite.
- added CCT (WW/CW) support
- support for applying change to main segment or all selected segments
* Remove extra setValuesFromFirstSelectedSeg()
Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2022-02-26 01:37:09 +01:00
Blaž Kristan
c8f1297adb
Fixed main/first selected segments in IR.
...
Code optimization.
2022-02-25 10:24:00 +01:00
Blaž Kristan
23d7c3d0fe
Merge branch 'master' into merge-master
2022-02-24 13:43:12 +01:00
cschwinne
ed90b638a9
Main seg replaced by first selected in internal interfaces
...
Version bump to 0.13.0-b7
Various small improvements
2022-02-23 19:20:07 +01:00
Blaz Kristan
2e84f82ed6
Fix for incorrect application of color in set.cpp
2022-02-21 19:44:12 +01:00
cschwinne
ae0eba866a
Improve Stream and fix HTTP segment application
2022-02-21 16:19:11 +01:00
Blaz Kristan
41b6f3ffa7
Merge branch 'master' into merge-master
2022-02-20 22:24:11 +01:00
cschwinne
7b969bb8c2
Various state changed logic simplifications
...
Changed main segment, must be selected
2022-02-16 21:12:33 +01:00
Blaz Kristan
f8eece362f
Compile fix.
...
Adjusted function names.
2022-02-10 16:09:16 +01:00
Blaz Kristan
a5b19bbc83
Multiple changes:
...
- added segment capabilities utility
- removed colorFromUinXX functions
- rewritten IR color handling (changeColor())
2022-02-10 13:24:51 +01:00
Blaz Kristan
e35ad7551b
Apply IR to main or selected segments.
...
Refactored IR code.
2022-02-07 00:40:45 +01:00
Blaz Kristan
52f0ae9350
Merge branch 'master' into master-merge
...
Few UI fixes.
2022-02-03 17:40:44 +01:00
Blaz Kristan
09bcf34050
Non-effect preset should not unload playlist.
2022-02-02 20:53:16 +01:00
Christian Schwinne
795c515999
Merge pull request #2517 from ChuckMash/serial+
...
Extend Serial functions. Baudrate changeable during runtime and fast LED data retrieval
2022-02-01 20:07:30 +01:00
cschwinne
00dbdc2267
Baud rate setting
2022-02-01 20:02:46 +01:00
Christian Schwinne
565d8d8f04
Binary Websockets for Peek ( #2516 )
...
* Binary Websockets for Peek
* No IRAM_ATTR here
* Use builtin LittleFS for all ESP32 builds
* Attempt LittleFS compilation fix
* Use tasmota zip for all ESP32 builds
* Revert to Arduino Core 1 for the time being
2022-02-01 12:02:04 +01:00
Blaž Kristan
0a5a0bef48
Enhanced usermods. ( #2522 )
2022-02-01 09:33:57 +01:00
Blaz Kristan
6e0e5c102e
Added extractModeName() utility function.
2022-01-31 20:43:35 +01:00
Blaz Kristan
d31271fee3
Minor fixes:
...
- optimized setPixelSegment()
- moved extractModeName() to util.cpp
- optimized extractModeName()
- removed SR extensions from /json/effects endpoint (compatibility estabished)
2022-01-31 20:35:11 +01:00
Blaz Kristan
3332375d7c
A few fixes.
...
Added HA autodiscovery to Multi relay usermod.
2022-01-21 17:30:52 +01:00
Blaz Kristan
7eb029dcb6
Complete segment syncing.
...
Reduced complexity of colorUpdated regarding effect/color change.
Minor optimizations.
2022-01-15 14:04:16 +01:00
Blaž Kristan
1ab555b590
Cleaning colorUpdated() & UDP segment syncing.
...
Added selected segments only save.
2022-01-14 14:27:11 +01:00
Blaz Kristan
8386b9a0b4
Removed dynamic JSON buffer entirely.
...
Temporary presets in RAM (ESP32)
Async loading of presets (stability).
Other minor fixes.
Bumped version to 0.13.1-bl6
2022-01-01 12:52:50 +01:00
Blaz Kristan
f45b5da71a
GZIPped UI & settings pages.
...
settings.js for pasting data into HTML.
Reduced simple & classic flash footprint.
Split iro.js and rangetouch.js into separate requests (instead of embedding)
2021-12-06 20:53:09 +01:00
Christian Schwinne
66bad2b6f8
Single json buffer ( #2336 )
...
* Single/static JSON buffer for all requests.
* Missing json.cpp changes.
* Async fix.
* Added conditional compile (WLED_USE_DYNAMIC_JSON).
* Advanced locking with time-out.
* Missing releaseJSONBufferLock() on error response.
* Fix for config saving.
* Fixes and optimisations.
Dadded debugging information.
* Fix for ledmaps.
* No unsolicited serial sending if GPIO1 allocated
* Stray semicolons
* Fix JSON ledmap
Co-authored-by: Blaz Kristan <blaz@kristan-sp.si>
2021-12-04 01:05:01 +01:00
Blaž Kristan
aa34df7a4c
Merge branch 'master' of https://github.com/Aircoookie/WLED into new-CCT
2021-12-01 14:51:45 +01:00
cschwinne
ea0f37f5b9
CCT bus manager logic simplification
...
CCT from RGB if none set (-1)
2021-11-24 11:02:25 +01:00
Blaz Kristan
20d03cb817
Incrementing & random effect, palette via JSON API
...
Moved utility functions to util.cpp
2021-11-23 20:20:19 +01:00
Blaz Kristan
108fc4a0d8
Pin manager enhancements (sharing I2C pins).
...
Effect helpers in UI.
2021-11-19 21:49:23 +01:00
Christian Schwinne
0465298507
Merge branch 'master' into CCT-support
2021-11-18 16:50:24 +01:00
Blaz Kristan
65ac8d4b2b
Merge branch 'master' into dev
2021-11-17 21:42:27 +01:00
Christian Schwinne
38d8dfe5ab
Improv support ( #2334 )
...
* Working Improv device identification
* Improv functional
* Cast fix
* Minor fix for two back-to-back Improv packets
* Improv checksum update and logic simplification
* Improved improv failed connection behavior
2021-11-16 23:20:26 +01:00
Blaz Kristan
312cbc86e9
Bugfix.
...
Debugging info added.
2021-11-14 16:56:34 +01:00
Blaz Kristan
85ded6e500
Advanced locking with time-out.
...
Bugfixes.
2021-11-12 23:33:10 +01:00
Blaz Kristan
d590e01a58
Merge branch 'master' into CCT-support
2021-11-05 21:27:52 +01:00
Blaž Kristan
04c9646e05
Merge branch 'master' into dev
2021-11-04 10:04:21 +01:00
Blaž Kristan
f66fcfbe6d
Minor change in handling mode names.
2021-11-03 12:08:29 +01:00
Blaž Kristan
10fc9fe268
Updated usermods for WLED-SR FX mode names.
2021-11-02 13:12:14 +01:00
Blaž Kristan
a93f05c047
Multirelay button support. ( #2284 )
...
* Multirelay button support.
Added button hook for usermods.
* Added MultiRelay relay states to JSON state object
* Move button timings to constants
No delay waiting for double press on button 0 if no macro set
Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
2021-10-31 11:57:03 +01:00
Christian Schwinne
00238247cd
JSON in/decrementing ( #2258 )
...
* Initial JSON in/decrementing
* Segment brightness in/decrement
* Update json-increment (#2290 )
* Add Basic Overlay support to Usermods.
* Add seven segment overlay usermod
* Add seven_seg debug build
* Add scrolling message to seven seg um
* Fixed red color on IP address
* bh1750
* Add msg scroll. Add MQTT and Config support
* Add readme
* Restore platformio.inii
* Edit comments
* Add strip off refresh option in LED settings. (#2259 )
* Add strip off refresh option in LED settings.
New strip initialization logic.
Minor code clen-up.
* Dev code removal.
* Missing ethernet include
* Renamed mainseg to selseg
* Fix for preset cycling bounds.
* "Preset 0" bugfix.
* Auto segments only if segments were not modified
Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
* Exclude virtual busses from current calculation (#2262 )
* Refactor string usage
* 0.13.0-b4
* Fix MQTT Null publish
* Additional Flash string concat
* Add AKST/AKDT
* UM RGB-Rotary-Encoder: Properly used PinOwner
* Cycling bugfix.
Co-authored-by: Gregory Schmidt <gregory.b.schmidt@hotmail.com>
Co-authored-by: Blaž Kristan <blaz@kristan-sp.si>
Co-authored-by: Caleb Mah <calebmah@gmail.com>
Co-authored-by: ezcGman <ich@andy-hofmann.com>
* Working JSON preset cycle
* Fix some Codacy style issues
Co-authored-by: Gregory Schmidt <gregory.b.schmidt@hotmail.com>
Co-authored-by: Blaž Kristan <blaz@kristan-sp.si>
Co-authored-by: Caleb Mah <calebmah@gmail.com>
Co-authored-by: ezcGman <ich@andy-hofmann.com>
2021-10-30 14:42:17 +02:00
Blaz Kristan
a696afaeb8
Color mangling macros.
...
Removed legacy Auto White caclulation.
2021-10-26 20:35:45 +02:00
Blaz Kristan
8ca298b299
Removed legacy auto-white calculation.
...
Introduced color mangling macros.
Minor optimizations/fixes.
2021-10-26 19:17:42 +02:00
Blaz Kristan
4e2bbc04fa
Button handling hook for usermods.
2021-10-17 17:14:55 +02:00
Blaz Kristan
939de6b177
Merge branch 'master' into dev
2021-10-17 10:09:22 +02:00
Blaz Kristan
c2e6d1c6bf
Squashed commit of the white-balance branch.
...
Updated simple UI.
Minor change in ST7789 display.
2021-10-16 15:13:30 +02:00
Blaž Kristan
5714578783
Refactoring & code clean-up.
...
- utility functions
- network functions
- math functions
2021-10-11 14:13:34 +02:00
Gregory Schmidt
47d4e7381f
Merge 'master' of Aircoookie/WLED into overlayum
2021-10-08 00:00:09 -08:00
Blaz Kristan
9c295d1884
Implemented temporary presets.
2021-10-04 20:22:04 +02:00
Blaz Kristan
caa9cc32d7
Removed double buffer.
...
Moved bri scaling into UDP function.
Prevent double DDP port allocation.
2021-10-04 19:41:20 +02:00
Blaž Kristan
aef53a8753
Network bus changes:
...
- moved brightness scaling to broadcast fn
- removed double buffer
- fixed getPixelColor()
2021-10-04 13:44:44 +02:00
Blaz Kristan
c1b0877956
Bus implementation.
...
Added separate DDP listener.
LED settings overhaul.
Minor fixes:
- reduced LED memory
- boot brightness fix
- reduced debug frequency
- added usermod time spent debug
- mDNS glitch fix
2021-10-02 15:07:02 +02:00
Gregory Schmidt
ccd3152b24
Add Basic Overlay support to Usermods.
2021-09-29 19:23:32 -08:00
Blaž Kristan
08925a72c6
Renamed BusVirtual to BusNetwork
...
- added options for E1.31 and ArtNet
- added check for initialised network
2021-09-22 13:20:36 +02:00
Phil Bolduc
cc661b26fa
fix spelling error, be smarter how we write data to udp
2021-09-20 16:57:54 -07:00
Blaz Kristan
d95ba43fd1
Virtual bus implementation.
...
Base for virtual WLED set-up (multiple instances acting as one).
UDP broadcast not yet implemented.
2021-09-20 22:24:58 +02:00
Blaz Kristan
7463be862f
Merge branch 'master' into dev
2021-09-18 22:43:26 +02:00
Henry Gabryjelski
021c4ba68a
Revert changes from PR1902
2021-08-29 11:49:06 -07:00
Blaz Kristan
5926d396f9
Merge branch 'master' of https://github.com/aircoookie/WLED into dev
2021-08-20 23:32:28 +02:00
Ahmed Shehata
2ecc53ba56
UDP Signal color correction ( #1902 )
...
* added ui changes for saturation in sync
* added setters/getters for hsv settings
* added color correction logic
* faster algorithm for color conversion
* added save/load config to fs
* adjusted value scale
* move color functions to colors.cpp
* remove unchecked file
* Various small changes
Moved settings location in sync settings
Changed wording from hyperion to live
Moved code into setRealtimePixel(), reducing duplication and enabling the functionality for DMX streams
Co-authored-by: Christian Schwinne <dev.aircoookie@gmail.com>
2021-08-19 18:24:41 +02:00
Blaž Kristan
0e1ad39ede
Merge branch 'master' into dev
2021-07-14 13:43:42 +02:00
cschwinne
123bd0bb92
v0.13.0-b2
...
Reduced unneeded websockets pushes
2021-07-11 02:38:31 +02:00
Blaz Kristan
b0cfcb1999
Merge branch 'master' into dev
2021-07-10 17:01:20 +02:00
cschwinne
a17f83cedd
Renamed `NOTIFIER_CALL_MODE_` to `CALL_MODE_`
2021-07-09 18:54:28 +02:00
cschwinne
2c6850f6e4
Fixed presets using wrong call mode (e.g. causing buttons to send UDP under direct change type)
...
Increased hue buffer
2021-07-09 18:42:52 +02:00
Blaz Kristan
db632ae847
Merge branch 'master' into dev
2021-07-06 16:38:13 +02:00
Louis Beaudoin
8c44147a45
Usermod Settings polishing/documentation ( #2061 )
...
* Testing new wrapper functions to read Usermod config
* Usermod Settings polishing
- remove getBoolFromJsonKey() (no longer needed), fix getValueFromJsonKey(element, destination, defaultvalue)
- Update Usermod Settings html "number" field to use step="any", and make wider to make maximum values fully visible
- step="any" allows viewing/submitting full 7/8-digit float values, and the arrow buttons step by 1 now, instead of .00001 (which wasn't good for integers or floats)
- html wasn't generated/compressed yet
* Update usermod_v2_example.h with more complete example and documentation for Usermod Settings
- readFromConfig() has three options for how to load values from the config JSON, we need to pick one
* Update/rename usermode_rotary_brightness_color, to be used as an example of more robust parsing Usermod Settings values
* Update Usermod example, rename getValueFromJsonKey() to getJsonValue()
- chose single readFromConfig() pattern
- demonstrating 3-argument getJsonValue()
- remove leftover printf in getJsonValue()
Co-authored-by: Louis Beaudoin <louis@embedded-creations.com>
2021-07-05 23:14:57 +02:00
Christian Schwinne
c4f084a991
Merge JSON ircodes ( #2048 )
...
* add decodeIRJson and JSON remote option
* handle JSON API commands also
* removed code that forced IR codes in a certain range to be decoded by decodeIR24. Generate default ir.json files for currently supported remotes.
* comment out printing API commands in IR handling
* refactor decodeIRJson to change how ir.json is loaded add support for calling several c functions
* Handle setting palette when effect is still on default solid and will not display it
* remove colorUpdated notifier that was pasted in accidentally
* Update to handle both 24-key and 24-key old remotes (#1969 )
* Update readme.md
* Update ir.cpp
Handle both 24-key and 24-key old in decodeIR switch statement
* Re-add JSON remote option
Co-authored-by: Scott Bailey <scottrbailey@gmail.com>
Co-authored-by: Artacus <40248830+scottrbailey@users.noreply.github.com>
2021-07-01 00:17:07 +02:00
Blaz Kristan
2424df0d18
Merge branch 'master' into dev
2021-06-25 15:52:59 +02:00
cschwinne
1e5420e6a7
readFromConfig() update
2021-06-25 01:26:15 +02:00
Blaz Kristan
14ac66ff4e
Minor optimisations.
...
Removed all traces of v2 JSON API.
2021-06-19 23:16:40 +02:00
Blaz Kristan
75bf758042
Incerased max segments.
...
Removed v2 JSON API.
Replaced col[] array handling.
Settings UI optimisations.
Increased DEBUG output period to 60s.
2021-06-19 18:06:30 +02:00
Blaz Kristan
1a80439825
Merge branch 'master' into dev
2021-06-15 23:36:12 +02:00
cschwinne
623694ab73
Playlist additions
2021-06-10 02:52:20 +02:00
Blaz Kristan
024ec86dc5
Unloading playlist on effect change.
2021-06-07 23:45:11 +02:00
Christian Schwinne
9f13763637
Merge branch 'master' into toki
2021-05-30 13:22:42 +02:00
cschwinne
c2892d7887
Add UDP sync of system time
2021-05-27 02:02:02 +02:00
cschwinne
6c8bf090fe
Small optimizations
2021-05-27 00:09:52 +02:00
Blaz Kristan
1ba70706c2
Bugfixes.
...
- multi-relay brightness check
- temperature no reading delay
- analog button fix & noise reduction
- IR removed custom
2021-05-25 23:00:21 +02:00
Blaz Kristan
2fdbc88d8c
Bugfixes.
...
- PWM bus not loading on boot
- analog 0 not turning Off
- conditional compile for Blynk
- segment name
2021-05-23 01:11:35 +02:00
Blaz Kristan
69099fcdd7
Multi button support.
2021-05-20 19:54:07 +02:00
Blaz Kristan
95df91a03b
Multi button implementation.
2021-05-19 18:39:16 +02:00
Blaz Kristan
a5a25f02e3
Merge JSON IR code into master changes.
2021-05-18 22:04:51 +02:00
Blaz Kristan
bfd7be543a
Merge branch 'master' of https://github.com/aircoookie/WLED into dev
...
Conflicts:
tools/cdata.js
usermods/PIR_sensor_switch/readme.md
usermods/Temperature/readme.md
wled00/FX.h
wled00/FX_fcn.cpp
wled00/bus_manager.h
wled00/bus_wrapper.h
wled00/cfg.cpp
wled00/const.h
wled00/data/settings.htm
wled00/data/settings_leds.htm
wled00/data/settings_um.htm
wled00/html_settings.h
wled00/json.cpp
wled00/mqtt.cpp
wled00/set.cpp
wled00/wled.cpp
wled00/wled.h
wled00/wled_eeprom.cpp
wled00/wled_server.cpp
wled00/xml.cpp
2021-05-18 15:45:34 +02:00
Blaž Kristan
17eeb22971
JSON IR remote
2021-05-18 09:48:58 +02:00
Blaz Kristan
742d580eae
Removed Usermod child/parent relationship.
2021-05-13 16:19:53 +02:00
cschwinne
d94d3d4bc5
Added experimental `/json/cfg` endpoint for changing settings from JSON
2021-05-11 01:11:16 +02:00
cschwinne
6ab95ed4ef
Remove Usermod inheritance from UsermodManager
2021-05-09 22:54:04 +02:00
Blaz Kristan
136a00a301
User configurable usermods.
...
- Utilizing addToConfig() & readFromConfig()
- UM configuration Settings page
- MQTT support for usermods
- A few sample usermods including rewritten Temparature and new Multi-Relay
2021-05-07 12:41:39 +02:00
Blaz Kristan
04c4451f7d
Usermods MQTT processing.
...
Multi-relay usermod with MQTT/HTML control.
Minor bugfixes.
2021-05-06 22:58:03 +02:00
Blaz Kristan
9bfe27dd5e
Sunrise and sunset calculation and sunrise/sunset triggered presets.
2021-04-12 21:53:22 +02:00
Blaz Kristan
93cefb88f5
CRLF madness. :(
2021-03-25 20:00:08 +01:00
Blaz Kristan
e70e1b8ad7
Adding backwards compatibility.
2021-03-25 17:07:03 +01:00
Blaz Kristan
77d8a8e43d
Reducing JSON buffer size requirements.
...
Increasing maximum number of segments.
2021-03-24 23:55:39 +01:00
Aircoookie
ba4c3e3852
Merge pull request #1724 from blazoncek/playlist-fix
...
Playlist handling.
2021-03-13 22:46:32 +01:00
Blaz Kristan
cb38976162
Merge branch 'dev' of https://github.com/aircoookie/WLED into dev
...
Conflicts:
wled00/NodeStruct.h
wled00/data/index.htm
wled00/data/index.js
wled00/fcn_declare.h
wled00/html_ui.h
wled00/json.cpp
wled00/udp.cpp
wled00/wled.cpp
wled00/wled.h
2021-03-10 13:23:03 +01:00