Frank
72a77bea9c
Merge remote-tracking branch 'upstream/main' into mdev
2023-03-16 16:54:23 +01:00
Ewoud
c928df9d70
Usermod class vars pt3:
...
Moved initDone, addToConfig and readFromConfig to Usermod superclass
Updated cleanup procedure:
Part 1
- remove bool enabled = false/true (now default false)
- remove static const char _name[] and _enabled[]
- add constructor which calls superclass (temp?): XXXUsermod(const char *name, bool enabled):Usermod(name, enabled) {}
- replace _enabled with "enabled"
- remove const char PROGMEM init for _name[] and _enabled[]
Part 2
- Remove bool initDone = false;
- addToConfig: replace createNestedObject with Usermod::addToConfig(root); JsonObject top = root[FPSTR(_name)];
- readFromConfig: replace !top.isNull and enabled with bool configComplete = Usermod::readFromConfig(root);JsonObject top = root[FPSTR(_name)];
See Temperature, MPU6050 and weather as examples (rest to be done)
2023-03-16 15:41:23 +01:00
Frank
cded92662f
workaround for issue #3128
2023-03-16 13:08:34 +01:00
Frank
d9b5b9d4d6
handleSerial(): 100ms RX timeout (experimental)
...
experimental - this should avoid lockups when ESP32 is constantly receiving data (noise, junk, excessive communication)
2023-03-16 11:30:12 +01:00
Frank
2de7971623
mpu6050 usermod: allow to disable usermod
...
* added usermod config information (so it can be disabled)
* check that "INTERRUPT_PIN" does support interrupts (MM specific)
* expose "dmpReady" in public interface
* adjusted games usermod to switch to "simulation" in case mpu6050 is not active
Still toDo:
1. add interrupt PIN and errormessages to settings page.
2. de-alloc intPin when disabled (and disable interrupt)
3. usermod is still destroying DEBUG_PRINT macros.
4. temporarily disable MPU interrupt when onUpdateBegin(true)
2023-03-14 20:52:48 +01:00
Frank
910ce494b4
usermod bugfixes
...
* rotary ALT: changing brightness did not have an effect (stateUpdated missing)
* four-line-display ALT: allow clockmode without NTP (network time)
- there are other possible time sources, like RTC.
2023-03-13 11:35:48 +01:00
Ewoud
c82cb18045
GEQ <16bands and smooth fixes + smooth colors
2023-03-11 14:40:51 +01:00
Ewoud
9f282f831e
GEQ: even distribution of bands and small changes
...
FX.cpp: GEQ: even distribution of bands
FX_fcn: tiny change
wled.cpp: setupMatrix also if loadedledmap != 0
ws.cpp: replace getLengthTotal by width * height (for ledmaps)
2023-03-11 13:59:23 +01:00
Frank
6ea77954bf
four-line-display: semaphores to avoid crashes
...
* some typos fixed
* Added semaphores around display calls; should fix https://github.com/Aircoookie/WLED/issues/3074
-- changes still need some cleanup to improve readability...
2023-03-10 22:44:25 +01:00
Ewoud
a0a0f99c3e
Add esp32_16MB_M_eth
...
Test needed if NetDebug works on esp32_16MB_M_eth
2023-03-10 15:41:22 +01:00
Frank
437284d380
4-line-display: font update, setup bugfix
...
* Improve clock mode for 128x64 OLED, using 2x3 font
* setup() bugfix: install display handler before activating logo
2023-03-09 21:44:27 +01:00
Frank
3a294d0852
four-line-display ALT: nicer font
...
use a nicer, less blocky font on 128x64 OLED displays (ESP32 only)
2023-03-08 20:44:30 +01:00
Frank
9d60425d2e
attempt to fix issue #21
...
set.cpp: introduce "-2" => "no value" in addition to "-1" => disable
4LD_ALT: do not copy "global" pins into UM specific setting; just use them directly.
2023-03-08 19:39:41 +01:00
Ewoud
3fe96a99ad
typo
2023-03-08 14:02:11 +01:00
Ewoud
1aa3ba9fad
Netdebug default enabled in _M and _XL bins and also works without Debug
2023-03-08 13:56:20 +01:00
Ewoud
7f7da1c52c
Bugfix
2023-03-07 14:02:01 +01:00
Frank
8d8fdfe77e
info page: add ESP restart reason
...
this is another "restart reason" - sometimes provides clearer information, especially in case of crash or watchdog reset.
2023-03-05 23:48:14 +01:00
Frank
cf2e8bbc0b
update build nr
...
and npm run build
2023-03-05 22:35:59 +01:00
Ewoud
f7e297160f
ledmap file properties: width, length, physical and segment resize
2023-03-01 17:00:49 +01:00
Ewoud
fbc9f9143e
pio.ini, fix 16MB boards
2023-02-27 20:14:50 +01:00
Ewoud
f62de8e590
Segment views >v
2023-02-27 17:31:31 +01:00
Ewoud
26f7c52279
Segment and peek visualization (dis)appear
...
Segment and peek visualization: click to dissappear, click segment to re-appear
2023-02-26 15:38:11 +01:00
Ewoud
ebd1e61e78
NetDebug: store enabled in cfg.json
2023-02-24 22:32:04 +01:00
Ewoud
f00558c5f4
DEBUGOUT improvements
2023-02-24 19:03:52 +01:00
Ewoud
bb6662ee35
NetDebug: switch between serial/netdebug, store ip and port in settings
...
pio.ini: enable WLED_DEBUG_HOST in esp32_4MB_M_debug and esp32_16MB_M_debug
audio_reactive, um6050, wled.h
- replace DEBUGOUT.print(x) by DEBUGOUT(x) etc
wled.h: switch between serial/netdebug
cfg.cpp, set.cpp, wled.cpp, xml.cpp
- store netDebugPrintIP and netDebugPrintPort in cfg.json
index.js: rename info tab on off to Net Debug
settings.sync: add netdebug
net_debug.h/cpp: use global netDebugPrintIP remove debugPrintHostIP
2023-02-24 15:40:16 +01:00
Frank
6f4eeea7dc
buildenv corrections for -S3/-S2/-C3
...
* avoid mixing ESP32 "V4" and S3/S2/C3 specific build flags
* added missing flags in generic S3/S2/C3 sections
2023-02-23 20:28:44 +01:00
Ewoud
86af341c6a
setUpMatrix bug fix
2023-02-23 15:58:02 +01:00
Ewoud
6fbce9b326
Cleanup and small issues
...
pio.ini: cleanup debug directives (build_flags_min move to _debug), remove blynks
index.htm/js:
- visualization in div to turn of if 1D
- scale visualizations if height>width
json.cpp, util.cpp: USER/DEBUG_PRINT changes
2023-02-23 15:23:35 +01:00
Frank
f38196f4c9
PICO board updates + fix for array overflow
...
platformio.ini: buildenv updates for PICO board (reduced upload speed, added "V4" environment)
wled.h: allow wifi sleep for PICO board (to reduce heat output)
xml.cpp: increase buffer arrays to avoid array bounds violations (PM_NO_PIN = 255 i.e. 4 bytes per element needed)
2023-02-22 17:22:44 +01:00
Ewoud
ea9f62c57a
Update version info: 0.14.0-b2.19
2023-02-22 16:51:27 +01:00
Ewoud
4a5cbc9879
Merge remote-tracking branch 'upstream/main' into mdev
...
Some additions:
pio.ini: add debug entries
cfg.cpp, set.cpp, xml/cpp: keep storing basic 2D setup
index.js: use ledmapFileNames
settings_2D.htm: keep using basic and advanced
FX_2Dfcn.cpp: use gaptable and also MM ledmaps
FX_fcn.cpp: extend enumerateledmaps with AC ledmapNames (but not used in UI)
2023-02-22 16:09:27 +01:00
mx
0d3debf9b9
sACN/E1.31 Port Priority ( #3052 )
...
* Added E1.31 port priority handling #768
* Ignore E1.31 data when priority doesn't match #768
* Enable E1.31 priority handling for WLED_ENABLE_DMX
* Only handle e131Priority for P_E131 protocol
* Corrected comments
* Highest priority package first handling
* Removed obsolete code & comments
* Improved comments
* Reduce priority timeout to be uint8_t
* Optimized code & comments
* E1.31: Ignore non-zero start code and preview data
These are not level data, they have other purposes
* Style change cca41508 preview & ignore non-zero start code
---------
Co-authored-by: RichardTea <31507749+RichardTea@users.noreply.github.com >
2023-02-21 17:13:15 +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
Will Tatam
e3f390b7cb
Revert change to define checks for WLED_ENABLE_DMX
2023-02-18 16:19:10 +00:00
Will Tatam
e21fc43b59
Revert change to define checks for WLED_ENABLE_DMX
2023-02-18 16:18:21 +00:00
Will Tatam
5b76df903f
Inital code swapping DMX input over to use esp_dmx
2023-02-18 16:05:42 +00:00
Will Tatam
c600c4fe72
Only put into DMX_SEND_ONLY if we arent trying to do input
2023-02-18 14:26:40 +00:00
Will Tatam
92a83faa00
Include DMX libraries needed for input mode
2023-02-18 13:37:18 +00:00
Will Tatam
3c15b7424e
Inital code on adding DMX input support
2023-02-18 13:22:24 +00:00
Will Tatam
77d7567707
Inital code on adding DMX input support
2023-02-18 13:17:09 +00:00
Blaz Kristan
3ffc58d442
Bugfix
...
- segment capabilities on 2D segments and ledmaps
- UI segment update
- auto segment creation 2D + 1D
2023-02-15 20:36:54 +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
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
Blaz Kristan
92d2be3f5e
Add ledmap names
...
Bugfix
- reset segments upon 2D ledmap allocation error
- fix invlid 2D segments
2023-02-14 17:11:58 +01:00
Ewoud
476105a267
Add serpentine to default peek + version date
2023-02-13 19:14:11 +01:00
Ewoud
0d0f6b5e30
refactor resetSegments to work properly
...
add boundsOnly
2023-02-13 15:54:18 +01:00
Blaz Kristan
821f320347
Add user selectable Gamma
...
Add panel visualisation (@ewoudwijma, #3090 )
Bugfix:
- PIR onStateChange() ignored until inited
- remove matrix orientation
- ignore removing ledmap 0 if 2D
- _globalLeds size
2023-02-12 13:18:30 +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