Commit Graph

4039 Commits

Author SHA1 Message Date
Ewoud
de0b832e56 Update to version 0.14.0-b2.20 2023-03-21 11:41:07 +01:00
Ewoud
8485be27f2 Merge remote-tracking branch 'upstream/main' into mdev 2023-03-21 11:39:30 +01:00
Aiden
3120b49dba Add some Athom devices (#3114)
Add some compile configurations for Athom's devices
2023-03-20 23:44:12 +01:00
Christian Schwinne
fb1999c474 Merge pull request #3107 from Aircoookie/onepx-segment
Tweaks & bugfixes.
2023-03-20 23:42:30 +01:00
Frank
691ad17b04 Small oops 2023-03-20 22:33:10 +01:00
Frank
87069ef7c0 audio processing: MicLevel "FAST freeze mode"
This mode freezes MicLev even fast. However it makes some assumptions that may not always be true:
* At least 12 seconds of silence during start
* a high quality microphone with very low noise level.
--> If you are not sure about these preconditions, better use normal "Freeze" mode.
2023-03-20 22:16:35 +01:00
Frank
fc9f3a1c24 audio processing: minor updates
- small optimizations
- remove overlapping in fft bin -> geq channel mapping
- move "freqRMS" to last position in the UI list
2023-03-20 21:43:58 +01:00
Ewoud
b30438ab1a AR: Add Frequency Distribution Normal and RightShift
Experimental setting
2023-03-20 15:15:04 +01:00
Frank
c0be44e07f audioreactive: experimental options for sound processing
- micLev:  "freeze" mode - should help to prevent short "dropout" wen music is playing
- freqRMS: if set to "On", will use a different method for averaging higher frequencies. May give you more action in GEQ. Could lead to GEQ "overshooting" as Mic Profiles are not adjusted to this method.

* const.h: static json buffer (usermod settings pages) was getting tight, added some margin
2023-03-20 14:11:12 +01:00
Frank
feb5542046 enable filters for legacy PDM 2023-03-19 20:52:36 +01:00
Frank
a525c0633a legacy PDM driver option
for low-cost PDM mics that do not have enough volume when used with the standard PDM driver.
2023-03-19 20:29:09 +01:00
Ewoud
ee25b53691 Minor changes 2023-03-19 18:36:10 +01:00
Frank
9ea3d2c731 sync settings: minor html update 2023-03-19 17:15:22 +01:00
Frank
66f6cc7048 html bugfix
stray ">" after comment
2023-03-19 16:31:47 +01:00
Frank
0409f6e61f npm run build
yo'man
2023-03-19 16:18:04 +01:00
Frank
fae2546c09 warn user if serial protocols are disabled 2023-03-19 16:17:35 +01:00
Frank
076b5b373d post-merge actions
fixes a build problem with MM specific code.
2023-03-19 16:13:44 +01:00
Frank
ea13c977b2 Merge branch 'Aircoookie:main' into mdev 2023-03-19 16:09:41 +01:00
Frank
1abc863f82 comment updated
Also "Serial JSON" is not possible when reading from RX pin is disabled.
2023-03-19 15:51:39 +01:00
Frank
d80e5cd063 Disable use of serial RX pin on some boards 2023-03-19 15:28:47 +01:00
Frank
907679c2f5 Merge remote-tracking branch 'upstream/main' into mdev 2023-03-19 15:15:12 +01:00
Frank
c9be03c0bc typo 2023-03-19 14:48:47 +01:00
Frank
fd89209233 adding WLED_DISABLE_ADALIGHT (issue #3128
This flag disables reading commands from serial interface (RX = gpio 3)

Add -D WLED_DISABLE_ADALIGHT to your custom pio build environment.
2023-03-19 14:42:01 +01:00
Blaz Kristan
2e362fbb64 Fix for #3074 2023-03-19 14:26:54 +01:00
Blaz Kristan
11b687cdc2 Float vs. double. 2023-03-19 11:24:59 +01:00
Blaz Kristan
747c920420 Bugfix.
- white overrides & CCT
2023-03-19 11:23:59 +01:00
Blaž Kristan
cac51737cb Merge pull request #3138 from codekane/mpu6050_imu 2023-03-19 07:38:44 +01:00
Ryan Horricks
7789379914 Fix typing to resolve build errors after installing the mpu6050_imu usermod. 2023-03-18 18:29:19 -06:00
Frank
eac4fe84e1 GEQ: accuracy improvement for Smooth bars
The previous code was scaling down fftResult[] to matrix height first, then computing smoothed bars.

We now to calculate smooth bars at full fftResult[] resolution first, and afterwards map the result to Matrix height. This improves accuracy and preserves a few more bits of real detail.
2023-03-18 20:53:31 +01:00
Blaz Kristan
08e2bfe9a2 Scale 2D peek for large matrices. 2023-03-18 18:22:31 +01:00
Frank
d8f0fea1f3 GEQ bugfix
fixing a corner case in GEQ -
if NUM_BANDS =1 then map(band, 0, NUM_BANDS - 1, ...) runs into division by zero.
2023-03-17 23:57:25 +01:00
Ewoud
aa6b1735d3 Add File System in settings and disable peek if not expandeed
index.htm and index.js and peek.js:
- add expand and peek function for peek expand to removeEventListener if not expanded

- add peekexp and segvexp in settings to save status (wip)

- add File System in settings
2023-03-17 23:53:27 +01:00
Ewoud
5ac9ffa073 Harmonize ledmap and jmap
ledmap: no lm prefix

jmap:
- also json extension (instead of jmap)
- also support json object with json array embedded:

{"n":"snake32"
,"width":32
,"height":32
,"map": []
}
2023-03-17 15:44:23 +01:00
Ewoud
e3e5825618 Simplification of ledmap width and height segment settings
(no recreation of panels anymore so back to default shows original)
2023-03-17 13:44:52 +01:00
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
e3c359a4a4 npm run build
yo-man
2023-03-16 15:25:00 +01:00
Frank
5a829e103a center UM overview table
see https://www.w3schools.com/howto/howto_css_table_center.asp
2023-03-16 15:23:15 +01:00
Frank
991c2afedb adding wled00.ino.cpp to gitignore
to avoid future accidents in GH Desktop
2023-03-16 13:10:33 +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
Ewoud
0b841c0788 MM Help small changes (add MPU6050) 2023-03-15 20:36:31 +01:00
Ewoud
ff6d5136ac Usermod class vars pt2: enabled default value 2023-03-15 18:18:11 +01:00
Ewoud
7337efec02 Usermod class vars part1: add enabled and _name for imu and dallas
usermod_mpu6050_imu.h and usermod_temperature.h:
- remove bool enabled = false/true (now default false)
- remove static const char _name[] and _enabled[]
- add constructor which calls superclass (temp?)
- replace _enabled with "enabled"
- remove const char PROGMEM init for  _name[] and _enabled[]

settings_um.htm:
- Add usermod table with class properties (name and enabled) -> WIP as not all UM's now and enable will be checkbox ? (compare with info tab...?)

fcn_declare.h
- add _name and enabled to Usermod class and add name to constructor

usermods_list.cpp
- add Usermod name to constructor for mpu6050 and temperature)
- to do add enabled is true to constructor
2023-03-15 17:48:37 +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
Ewoud
a0576ba591 restore MM functionality to not reset segments if 2D settings change!!!
customeffects.js:
- rename downloadCEFile to downloadGHFile
- downloadGHFile: add GH ledmaps folder

FX_fcn.cpp and set.cpp:
- change makeAutoSegments with resetSegments(true)
2023-03-13 21:35:48 +01:00
Frank
2f274399f3 UM rotary bugfix
fixing a crash that was caused by calling updateInterfaces() too often.
2023-03-13 19:13:46 +01:00
Frank
6d1fd3aaa0 usermod updates: RTC, BH1750
RTC: smarter rules for updating RTC time
BH1750 (light meter): allow to use without MQTT; updates for MM specific I2C handling.
2023-03-13 14:09:35 +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
ab808c5522 Merge remote-tracking branch 'upstream/main' into mdev 2023-03-12 20:53:22 +01:00