How to add libraries stored in local drive?

I haven’t been able to compile my code because PlatformIO isn’t able to find libraries stored in my own hard drive.

They are very useful ESP32 specific libraries and I intend to use them in several projects. But I can’t make them be found through libraries search.

How to do it?

You can point your project to an extra library folder per lib_extra_dirs.

Otherwise the searched paths will only be

  • global library storage (default <home folder>/.platformio/lib)
  • lib/ folder of the project
  • librariese referencedd by lib_deps