Commit Graph

4013 Commits

Author SHA1 Message Date
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
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
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
Frank
d9535f1440 optional partition layout for 2MB boards
useful for small -C3 boards with 2MB flash memory only. Based on suggestions  from https://github.com/Aircoookie/WLED/pull/2951 .

Needs `-D WLED_DISABLE_OTA` as OTA is not possible with 2MB.

RAM:   [==        ]  22.5% (used 73724 bytes from 327680 bytes)
Flash: [========= ]  94.9% (used 1492020 bytes from 1572864 bytes)
2023-03-12 15:05:18 +01:00
Frank
559716867a minor rewording
seems that nobody understands what "GPIO config" means 😜 maybe "pin settings" is clearer.
2023-03-12 14:59:50 +01:00
Blaz Kristan
d1fed11d0d Fix for #2542.
UI rebuild.
2023-03-12 13:10:40 +01:00
Blaž Kristan
e96053e268 Merge pull request #3121 from troyhacks/2023-03-10-Art-Net_Transmit
Art-Net transmit support for network LEDs
2023-03-11 22:50:07 +01:00
Blaž Kristan
9b98cbb894 PROGMEM for header 2023-03-11 22:35:22 +01:00
Blaž Kristan
349578fb6e whitespace cleanup 2023-03-11 22:33:06 +01:00
Ewoud
2f024568de Fix for smaller number of pixeld than matrix size.
Borrowed from upstream / onepx-segment
2023-03-11 21:18:21 +01:00
Frank
cac975c046 additional board def for 16MB ethernet
the main difference is that "esp32-poe" is used as variant, instead of "esp32dev". Seems that this is needed to define a few special purpose pins on ethernet boards.

Might help to fix https://github.com/MoonModules/WLED/issues/23
2023-03-11 21:01:03 +01:00
Frank
c9f364de76 optional 4MB partition file with almost 2MB program space
optional 4MB partition layout: 1.8MB firmware (+400KB), 256KB LittleFS (-800KB); based on  "min_spiffs.csv" from arduino-esp32, but increased filesystem partition from 128KB to 256KB.
2023-03-11 20:40:12 +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
TroyHacks
a4fcbb9f67 Art-Net transmit support for network LEDs
Like DDP, this allows WLED to address network systems using the Art-Net protocol.

Universe starts at zero, because that's the first universe in Art-Net.

Works with RGB. It's coded to also work with RGBW, but I couldn't find a great place to enable it without mucking with things I don't understand.
2023-03-10 13:29:00 -05:00
Frank
d6c8f44dfa optional 16MB partition file with 3MB program space
* This is basically "app3M_fat9M_16MB.csv" from arduino-esp32 2.0.7 - just changing the filesystem type from FAT to spiffs.
* deleted the older, broken "Soundreactive 16MB" partition file.

* minor fixes for pio.ini
* adding wled.ini.cpp to .gitignore (was overdue ...)
2023-03-10 16:16:28 +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