PlatformIO Community

Can I install a Library from GIT into the VS Code IDE of PlatformIO? if so How?

I don’t know if there is a way to install a library from Git but the library that is provided do not have the 3axis accelerometer library that I need. Can someone point me into the right direction, please?

If there is a library you need in a git repo, and it’s not in the PlatformIO library registry, you can pull it into your project via your platformio.ini lib_deps option by simply referencing the URL for the library…

i.e. for GitHub - philbowles/PangolinMQTT: PangolinMQTT - ArduinoIDE client library for ESP8266, ESP32 and STM32-NUCLEO

… I simply hit the copy to clipboard icon …

image

… and put it in the my projects platformio.ini

image

… and PlatformIO automatically installed it. You can also give it the URL of the repo (without the .git on the end) or the URL to the zip file - PlatformIO will work it out.

@pfeerick, is there a way to refer to a certain tag or release in the URL - means: not the latest one?
Thank you!