How to use library across all /set of projects ( global scope)

i’m sure this is basic, but can’t figure out the answer.

If i have a library that i want to share across several projects, how do i do that ?
thank you

and the answer was in Installing a Teensy library from Github into global scope

ass lib to ~/.platformio/lib

Please close as resolved.

This is a global storage. I think that lib_extra_dirs is better solution.

Thank you.
What’s the difference between lib_extra_dirs and lib_deps?

  • lib_extra_dirs - the list with directories where PlatformIO should look for dependencies
  • lib_deps - the name of dependencies which PlatformIO will isntall automatically to libdeps_dir.

Thank you Ivan.
Please close as resolved.