Commit Graph

436 Commits

Author SHA1 Message Date
Ewoud
04deea9b39 PlatformIO: move MM envs to bottom 2023-02-14 18:29:38 +01:00
Ewoud
40e82166bc Ledmap persistent/consistent and showing in segment graph +small changes
pio.ini: remove ping pong clock from _all
ce.js: change on error handling
liveviewws2D: add colorAdjust
json.cpp: ledmaps will be stored in json/info 
settings_2D: fieldChange at loadJS

FX_(2D)fcn.cpp:
- loadedLedmap default 0 (default)
- loadedLedmap active then only use if index <size

index.js:
- global ledmap set to active value
- draw to drawSegments
- gradient colored leds
- add ledmaps to graphics
- add fetchAndExecute (from custom effects), used by drawSegments to get ledmap contents
- graphics bigger in non pc mode
2023-02-10 16:26:35 +01:00
Ewoud
1b3952c889 Merge remote-tracking branch 'upstream/main' into mdev 2023-01-24 21:40:55 +01:00
Ewoud
1f921bf0c9 Bugfix for ESP8266, ESP01
UM PIR: pin default -1
xml.cpp: no D1-8 for esp01
2023-01-20 12:34:11 +01:00
Frank
8918271620 new build flag WLEDMM_WIFI_POWERON_HACK
This ensures that WiFi gets powered ON (useful for boards with small "RainSun" crystal Wi-Fi antenna)
2023-01-19 17:50:10 +01:00
Frank
72168d28b1 new build flag SR_ENABLE_DEFAULT
for boards with builtin microphone (like PICO)
2023-01-18 23:09:37 +01:00
Ewoud
ceab107602 Optimizing / clean up of d.max_gpio, d.um_p, d.rsvd, d.ro_pins 2023-01-18 13:43:33 +01:00
Ewoud
5d028b3d3f Add 4LD to esp8266_4MB_max and D0-D8,RX,TX to pin dropdowns
pio.ini: Add 4LD to esp8266_4MB_max
Settings_um and xml.cpp: add D0-D8,RX,TX to pin dropdowns
2023-01-18 12:04:01 +01:00
Ewoud
6cd07c2216 esp8266_4MB_min - 160Mhz (instead of 80) ;-)
+ small things
2023-01-17 17:54:14 +01:00
Frank
8aebb94332 esp8266_4MB_max - 160Mhz (instead of 80)
This should work with any 8266, and lead to strong speedup (and maybe fewer random flashes)
2023-01-17 17:33:46 +01:00
Ewoud
357e3638d4 New esp8266_4MB_max entry to test usermods / i2c
pio.ini: add esp8266_4MB_max with pir, dallas, relay  games (to test IMU) 

addHB: use string literal instead of var

appendConfigData to um multirelay
2023-01-17 13:07:50 +01:00
Ewoud
10f006ef18 Small changes on pin dropdowns / usermod help
platformio.ini: add wemos_shield_esp32_4MB_all_base

usermods:
- rename disableROPins to disableRO
- bme280: add appendConfigData, info and disableRO
- PWM Fan: add appendConfigData

Settings_um.htm
- add 🟢
2023-01-16 15:07:41 +01:00
Ewoud
12cd6a2738 Quickfix to let esp32_16MB_PSRAM compile: move um to _all
Moved from _max to _all:

 -D USERMOD_BATTERY ;; enable Battery usermod
  -D USERMOD_BATTERY_USE_LIPO ;; use new "decharging curve" for LiPo cells
  -D USERMOD_BH1750
  -D USERMOD_ANIMATED_STAIRCASE
2023-01-15 18:31:01 +01:00
Frank
6ad22e16c0 bugfix for -C3 buildenv
* ARDUINO_USB_CDC_ON_BOOT must be either 0 or 1 - I should read my own instruction ;-)
* minor cleanup
2023-01-15 03:07:18 +01:00
Frank
e0bf199109 new buildenv for -C3 with 4MB flash (experimental)
[env:esp32c3dev_4MB_max]
2023-01-14 22:48:23 +01:00
Ewoud
49bb9be12c Minor change: not set I2C pins for all MM configs, only on Wemos shields 2023-01-11 18:17:38 +01:00
Ewoud
9944f8dc72 global I2C and SPI pins and mpu6050 interrupt pin default to -1
As can otherwise cause conflicts, must be set in platformio explicitly to the right values

Set in platform io for _max configs
2023-01-11 17:32:19 +01:00
Frank
6cd6817cb5 always print out basic chip info at startup
because I like it.
2023-01-11 15:25:22 +01:00
Frank
b87d50fce4 new environment for "d1 mini pro" ESP8266
D1 mini pro": ESP8266EX, 160MHz, 80KB RAM, 16MB Flash
2023-01-11 14:21:34 +01:00
Frank
1406d2546b post-merge
merging upstream changes to esp32c3 with our own version for -C3
2023-01-10 22:18:19 +01:00
Ewoud
437bfc825c Merge remote-tracking branch 'upstream/main' into mdev 2023-01-10 15:39:17 +01:00
Ewoud
bba57d4771 Remove I2CSCL/SDA/SCLK/MOSI/MISOPIN rename *_DATASPI to *_MOSISPI
use HW_PIN_* instead
2023-01-09 17:41:52 +01:00
Frank
b8cc783583 pio: minor update for -C3
adding optional platform version that seems to help in some special cases.
2023-01-09 13:20:02 +01:00
Ewoud
a10f1b20ac Add _all entries for esp32 16MB with lots of usermods
platformio: add _all entries with a lot of usermods
usermod bh1750 and bme280: avoid global pin hijacking
settings.htm: remove height for compact display
2023-01-08 16:07:02 +01:00
Ewoud
544446d35e Further pin improvements
platformio
- create _all entries (wip)
- set FLD_PIN_SCL to -1 (use global)

4ld
- one bug fix and errorMessage improvements

const.h
- comments

wled.h
- do not use the I2CSDAPIN vars but HW_PIN_SDA instead
2023-01-08 13:51:27 +01:00
Ewoud
ed815beabf Fix compilation of esp32S3_8MB_max and esp32s2_tinyUF2_PSRAM_max
Using lib_deps_V4_max entry
2023-01-08 11:27:29 +01:00
Ewoud
bfa06df47c Tiny changes
0.14.0-b1.14 - 2301080
2023-01-08 10:52:22 +01:00
Ewoud
da590bac7e Add animated staircase to _max environments, add ? btn to Bat,temp,Asave 2023-01-05 17:40:13 +01:00
Ewoud
642d7d91ea i2c_sda, i2c_scl, spi_mosi, spi_miso, spi_sclk without HW_PIN_*, bh1750
platformio: 
- add bh1750 to _max
- define rotary defaults for wemos

usermod_bh1750
- Remove HW_PIN_* and replace by i2c_sda etc
- add appendConfigData

usermods mpu6050_imu, rtc, 4ld, pinmanager
- Remove HW_PIN_* 

change SDA2:pin (etc) to SDA:pin
2023-01-05 16:35:49 +01:00
Frank
2ec24242db post merge 2023-01-05 12:38:59 +01:00
Ewoud
23663a46f9 Refactor global pins settings using dropdowns and add to rotary_encoder
- replace rOption by  xOption (extend option) to show default value (⎌)
- Usermod rotary_encoder: add appendConfigData function and show help and default functions
- Settings.htm: Move Usermods(pins) below the usermods

Settings_um.htm
- remove SDAPin etc
- comment check(0,k) as not used anymore
- add xOption
- add generated global pin fields (using addField) in ldS
- remove hard coded global pin fields

set.cpp: set i2c_sda etc using new generated fields
xml.cpp: set generated fields values using i2c_sda etc and show defaults
2023-01-04 12:17:14 +01:00
Ewoud
545a4c820c quick fix 2d config hor/ver/panel issues + battery usermod
- Add battery usermod
- set segexp default true
- quick fix 2d config hor/ver/panel issues
2023-01-03 14:45:01 +01:00
Ewoud
d1bf3b4690 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-24 15:27:43 +01:00
cschwinne
72eb61951b Dynamically show hidden color slots for * palettes
Disable Blynk by default in release builds
Single quote strings everywhere for classList
2022-12-23 02:59:24 +01:00
Frank
e6bd66d35d improve support for -S2
got myself an adafruit "qt py -S2" with tinyUF2 bootloader. So I wanted to get that working. And it does work :-).
FFT time = 10ms (instead of 2ms on classic ESP32)  is a very good result, also virtual USB runs much better now.
2022-12-22 23:22:58 +01:00
Frank
d7b5719dfd add mandatory build flags for -S2 and -C3 (virtual USB)
I was wondering why sometimes the new MCUs still work better in Arduino IDE, so compared our build flags to what is used in Arduino IDE:

-S2 always has -DARDUINO_USB_MODE=0
-C3 always has -DARDUINO_USB_MODE=1
-S3 supports all possible modes
2022-12-21 22:07:15 +01:00
Frank
f9b9716fdd Improvements for -S2
- new partition table for boards with UF2 boot (Adafruit qt py S2)
- better treatment of debug out using "USBCDC" native port
- workarounds for watchdog crashes on -S2
- Add missing but mandatory build flags for -S2 and -C3
2022-12-21 17:25:41 +01:00
Ewoud
2af9fc3755 Add mm.kno.wled.ge
Change https://kno.wled.ge to https://mm.kno.wled.ge
Change help to ?  button in usermods
Change WeatherUserMod to Weather
2022-12-21 12:30:40 +01:00
Frank
3d80f503cd make netDegug work with MIC_LOGGER
adding a dummy "´flush()" method to NetDebug that does nothing
2022-12-20 17:47:33 +01:00
Ewoud
3139f5228d Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-19 14:00:52 +01:00
Ewoud
c708d277c7 PlatformIO fix 16MB boards bug 2022-12-19 13:16:36 +01:00
Ewoud
b05229936d Platformio: add more wemos shield 16MB entries and improve/cleanup
Platformio:
- Add wemos_shield_esp32_16MB configs
- Improve/cleanup some comments
- Create entries for shield mics/linein and 16MB board
- Reuse these entries (SPM1423, ICS4343x, LineIn, 16MB)
2022-12-16 20:48:58 +01:00
Ewoud
ffe52fcbf5 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-16 11:43:27 +01:00
Frank
d1514b76d7 correct a dangerous change from upstream
re-defining "register" breaks inline ASM code (frameworks)
2022-12-11 18:06:53 +01:00
Frank
cafa78c3f3 fixing CI build. really now.
-check IDF target after including arduino.h
-add missing build flags in [env:esp32s2_saola]
2022-12-10 19:00:48 +01:00
Frank
88d05578a8 platformio.ini: do not redefine "register" as it break ASM code and affects methods called "register" as well
unfortunately this breaks build for -C3 and -S3

/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/include/riscv/include/riscv/semihosting.h:75:19: warning: ignoring asm-specifier for non-static local variable 'a0'
     register long a0 asm ("a0") = id;
                   ^~
.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/include/riscv/include/riscv/semihosting.h:76:19: warning: ignoring asm-specifier for non-static local variable 'a1'
     register long a1 asm ("a1") = (long) data;
2022-12-08 22:00:44 +01:00
Frank
3da2ec5112 upps
forgot to remove this.
2022-12-08 13:20:50 +01:00
Frank
c3545ef060 build env update for -S3 without serial-to-USB chip
small -S3 like Adafruit "QT Py ESP32-C3" seems to need USBCDC.
2022-12-08 12:47:34 +01:00
Ewoud
3160a0b090 Merge remote-tracking branch 'origin/ac_main' into mdev 2022-12-06 14:38:49 +01:00
Frank
da7972c119 use latest NeoPixelBus for -S3
NeoPixelBus 2.7.1 is the first release that has official support for ESP32-S3
2022-12-05 16:20:58 +01:00