lib_deps

Type: Package Specification | Multiple: Yes

See also

Please make sure to read Dependency Management guide first.

Specify project dependencies using Package Specifications that should be installed automatically to the libdeps_dir before environment processing.

If you have multiple build environments that depend on the same libraries, you can use Section [env] or Interpolation of Values to use the common configuration.

Check the PlatformIO Registry for the available libraries and the installation instructions.

Example

[env:myenv]
lib_deps =
  ; name-based (built-in library in framework)
  SPI

  ; owner-based declaration
  knolleary/PubSubClient

  ; SemVer specification
  bblanchon/ArduinoJson @ ~5.6,!=5.4

  ; external Git resource
  https://github.com/gioblu/PJON.git#v2.0

  ; custom name
  IRremoteESP8266=https://github.com/markszabo/IRremoteESP8266/archive/master.zip