Closed BanditJackpot closed 6 months ago
Please contact original author of the usermod. WLED team does not maintain usermods unless personally interested.
I'm facing the same issue, should the bh1750 usemod be included in the source code if outdated etc? People will naturally open issues here. Could you point to the original author's github please? Cheers!
FYI just remove the offending F("")
What happened?
When trying to custom compile WLED (V0.14.2) for an ESP8266 (Lolin D1 Mini board) with the BH1750 Usermod enabled, WLED will not compile, and i'm presented with error: statement-expressions are not allowed outside functions nor in template-argument lists
I've followed the usermod readme and ensured all dependencies are included (see below).
I have tried this again with a fresh installation of Visual Studio, Platform.io & a fresh copy of WLED 0.14.2 from Github, but the problem persists.
If I try to compile this usermod for an ESP32 board, it builds successfully, so this seems to be limited to ESP8266 boards only, and I can't figure out why.
To Reproduce Bug
Compile via Visual Studio, modifying the platformio.ini file to uncomment:
and add the following build flags and library dependencies (as per the readme)
Expected Behavior
When compiling for an ESP32 board, I can compile successfully, so I would expect this to work for an ESP8266 board (and this is also listed in the example for Usermod BH1750
Install Method
Self-Compiled
What version of WLED?
WLED 0.14.2 & 0.14.1
Which microcontroller/board are you seeing the problem on?
ESP8266
Relevant log/trace output
Anything else?
I have searched the forums and discord, and I've only found one other person who has mentioned a similar issue, but with no resolution.
Code of Conduct