Ok, I am really trying to give Platform.IO a chance as I respect the advice of people with much more experience than I but so far I hate it. Can anyone kelp point me in the right direction of what might be causing these errors when I attempt to build the latest WLED Master? I really am trying to like it.
Compiling .pio\build\esp32dev\src\xml.cpp.o
In file included from .pio/libdeps/esp32dev/NeoPixelBus_ID547/src/NeoPixelBus.h:82:0,
from .pio/libdeps/esp32dev/NeoPixelBus_ID547/src/NeoPixelBrightnessBus.h:29,
from wled00\NpbWrapper.h:119,
from wled00\FX.h:30,
from wled00\fcn_declare.h:79,
from wled00\wled.h:84,
from wled00\udp.cpp:1:
.pio/libdeps/esp32dev/NeoPixelBus_ID547/src/internal/DotStarGenericMethod.h:33:33: fatal error: .pio/libdeps/esp32dev/NeoPixelBus_ID547/src/internal/TwoWireBitBangImple.h: Permission denied
compilation terminated.
*** [.pio\build\esp32dev\src\udp.cpp.o] Error 1
============================================================================ [FAILED] Took 119.60 seconds ============================================================================
I tried to upload after this and it did succeed in uploading the code albeit extremely slowly but then it just kept re-uploading and I had to terminate the process and Vstudio crashed.
You might have a problem with ESP32 pico. Board have one core and as I recall somebody already has tried to flash such a board with limited success. Better if you use ESP8266 MCU or similar. Just uncomment Platformio.ini line with your board.
I really want to get this M5Stack operational, 8266 isn’t packaged like this is.
Funy thing is, compiling with Platform.IO it has been perfectly stable but the button does not work. Arduino the button works but wifi connectivity is an issue.
Thanks @pille for the info. I’m still not sold on PlatformIO. Im still having an issue where I get build errors about files missing but then after 1 or 2 fails, it builds properly. Twice I’ve has to restart PlatformIO to get it to successfully build.
Any advice on making it wasy to switch back and forth on hardware platforms for the build? Just manually editing the platformio.ini for each build?
If you press platformio icon on the left side you will see list of the tasks. Choose one at the time and you don’t have edit *.ini file Be patient and soon you will realize that you can do a lot more with Platformio than with Arduino IDE.
I found out if there are any GLOBAL libraries configured, they override any project library version requirements. I removed all the global libraries and suddenly could succeed 100% with compiling using PIO and WLED.
Thanks all. Ok, so I think I’m comfortable with PlatformIO and building for multiple boards and getting used to it. How do you all keep current with the changes to WLED-Master? Can you point PaltformIO to the Git repo and automatically update or do you just manually maintain a local project folder?
Also, for a shared folder/computer scenario, what do you keep shared and what do you keep on the local computer?
If it helps anyone, I now have 3 computers sharing a common Onedrive shared file structure by setting the following 2 Env variables on the systems to point to local dirs.