Hi, I came across weird error when compiling custom binary with VS and platformio.
Everything compiles and uploads fine in Visual Studio but when I connect to WLED-AP there’s no colour wheel and the WebUI shows an Error in red box:
" TypeError: Cannot read properties of undefined (reading’on’) "
I can still acces settings normally but info tab is not loading
My setup:
-ESP32 counterfeit Wemos_D1_mini32 v1.0.0 (with CP2104 USB to serial converter)
-D1 mini Battery Shield v.1.2.0 with jumper J2 soldered (connecting D1 mini’s A0 pin thru voltage divider to battery)
I’ve checked it on two of those boards without any peripherals connected, powered via USB. The problem still occured. I’ve tried erasing the ESP’s with esptool.py several times but it didn’t help.
Clean install using “install wled me” website works fine but doesn’t meet my expectations.
Im using DMX_Output + Battery_Status_basic usermod
It only occurs when I upload this two particularly, themselves they work perfectly fine.
on WLED version 0.14.0-b2 (neither it works on 0.14.0-b1)
I’ve changed the pinout so that DMX output doesn’t colide with outputPin or status
My platformio setup and custom environment in platformio_override:
[platformio]
default_envs = myBoard
[env:myBoard]
board = wemos_d1_mini32
platform = espressif32@3.2
platform_packages = ${esp32.platform_packages}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32}
-D WLED_DISABLE_ALEXA
-D WLED_DISABLE_BLYNK
-D WLED_DISABLE_HUESYNC
-D WLED_ENABLE_JSONLIVE
-D WLED_ENABLE_DMX
-D USERMOD_BATTERY_STATUS_BASIC
-D USERMOD_BATTERY_MEASUREMENT_PIN=36
-D STATUSLED=12
-D DEFAULT_LED_COUNT=128
-D LEDPIN=21
-D IRPIN=16
-D ABL_MILLIAMPS_DEFAULT=0
lib_deps = ${esp32.lib_deps}
board_build.partitions = ${esp32.default_partitions}