I don’t recommend to use libraries installed by Arduino IDE (Ivan)

Ivan, Why is this your recommendation, are there different libraries in the 2 locations?

  1. I don’t recommend to use libraries installed by Arduino IDE. Please use our Library Manager
  2. Nevertheless, if you need them, please remove lib_dir=~\Documents\Arduino\libraries line from [platformio] and use lib_extra_dirs instead. For example.
[env:myenv]
lib_extra_dirs = ~\Documents\Arduino\libraries

Thanks,
Greg

Arduino IDE supports only 1 version of library per all your projects. You can’t manage different libraries per project. So, it’s very difficult to reproduce correct project build using external Arduino IDE libraries which can be upgraded anytime.

I recommend to use Semantic Versioning and strict lib_deps option.

2 Likes