The version of arduino-espressif32 that comes with the platformio packet manager is unfortunately out of date for a very specific functionality (ledc-fade). So i want to use the newest github version of the library.
How do i do so? I am on a mac and I cloned the repo, but putting
framework = framework-arduinoaespressif32@/home/julian/Code/arduino-esp32
in my platformio.ini gives me
Error: This board doesn’t support framework-arduinoaespressif32@/home/julian/Code/arduino-esp32 framework!
I’m using an ESP32-S2 and my board in the ini is set to board = esp32-s2-saola-1, so it also might be tha tthe config problem lies there?
framework can only be the principal value of the name of the framework, i.e,. arduino. It’s invalid to pass a package name and a path there. That’s what platform_packages would be for.
However, this still wouldn’t work: The standard platform code (espressif32) and the current state of the Arduino-ESP32 builder script is so wrong (referencing inexisting PlatformIO registry packages etc.), that a platform_packages link to #master would not work. Espressif seems to have screwed that one up.
If upgrading to an Alpha version is too unstable and unmaintainable, I’m sure you can do with classical ledcWrite() calls on every loop() call with some time variable map()-ed to the right color / PWM value. (example)