Commit Graph

3985 Commits

Author SHA1 Message Date
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
Blaž Kristan
d57e6c5bf2 Merge pull request #3106 from lost-hope/klipper
Usermod: Klipper percentage
2023-03-10 14:14:31 +01:00
Blaz Kristan
80711cc00a Whitespace. 2023-03-10 14:08:52 +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
Ewoud
c16532126a Ledmap refactors
Refactor ledmap in index.js and FX_fcn.cpp (remove physical)

WS2812FX::setPixelColor and gPC: check index after ledmap applied
2023-03-09 15:08:26 +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
062eb75d06 usermod bugfixes
fixing some "missed corner cases" in popular usermods.
* acessing unitialized arrays
* trying to draw on a non-initialized display
2023-03-08 20:37:27 +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
63d8104974 esp32_4MB_PSRAM_M disable Infrared to stay < 100% 2023-03-08 14:18: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
Ewoud
10c5d8f20f Refactor setUpMatrix, deserializeMap for ledmaps 2023-03-07 13:56:18 +01:00
Frank
92c97e33b1 GEQ: option to simulate higher resolution
New GEQ checkbox "Smooth bars", that removes staircases by interpolating missing FFT channels.
Looks nice on a Matrix with >16 columns :-)
2023-03-07 02:06:41 +01:00
Frank
dca25b51d1 Merge remote-tracking branch 'upstream/main' into mdev 2023-03-06 16:38:45 +01:00
Frank
7ad13f933a chores
npm run build + small update for wled.cpp
2023-03-05 23:54:43 +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
ea30f456e5 info page updates
- merge "used head" and "total heap" into one line
- add used heap percentage
- rearrange order of some items for better readability
2023-03-05 23:17:22 +01:00
Frank
2713573b9b Delete wled00.ino.cpp
accident
2023-03-05 22:38:36 +01:00
Frank
cf2e8bbc0b update build nr
and npm run build
2023-03-05 22:35:59 +01:00
Frank
bc56c1a0e1 bugfixes
* xml.cpp: correct type for checkbox global led buffer" (was not shown correctly)
* fx.cpp: 2D floating blobs - correct swapped x/y coordinates (did not render correctly on non-square matrix)
2023-03-05 22:30:08 +01:00
Ewoud
f7e297160f ledmap file properties: width, length, physical and segment resize 2023-03-01 17:00:49 +01:00
Ewoud
6b659ab52e Add physical ledmap support + tiny changes
index.js, FX_fcn.cpp
- add physical ledmaps (lmPxyz.json)
2023-02-28 17:17:22 +01:00
lost-hope
cb931d7af0 Merge branch 'main' of https://github.com/Aircoookie/WLED into klipper 2023-02-27 21:21:45 +01:00
Soeren Willrodt
6b54b57cb9 fixing the PR conflict 2023-02-27 21:01:32 +01:00
Ewoud
fbc9f9143e pio.ini, fix 16MB boards 2023-02-27 20:14:50 +01:00
Ewoud
56342d7881 pio.ini esp32_16MB_V4_M 2023-02-27 19:50:42 +01:00
Ewoud
ecc69245ee segment views, scale better 2023-02-27 19:39:27 +01:00
Ewoud
f62de8e590 Segment views >v 2023-02-27 17:31:31 +01:00