Hi all,
I am currently using arduino-cli, and am writing to ask if it is possible to disable the 2 default library include paths
(in Windows):
- C:\Program Files (x86)\Arduino\libraries
- %userprofile%\Documents\Arduino\libraries
The reason is that for some of my projects i am using older versions of some libraries because with the latest ones my code doesn't compile anymore (library interface changed). I don't want to update my code to support the newest libraries because this does not protect me from the problem possibly happening again when a library gets updated further.
Instead, i would like to keep the relevant libraries inside the project source tree and use the --library option to include them; but if i do so, i get compile errors because the 2 directories above are always included by default, thus ending in conflicting/duplicate declarations.
A temporary (and horrible!) solution i found was to leave the default library directories empty by relocating the system and contributed libraries somewhere else, but this adds extra work to keep the libraries updated (for my newer projects) since the library manager doesn't work anymore.
An additional command line option to disable these 2 default locations or a CLI version requiring to mandatorily specify also the 2 aforementioned library paths would be perfect.
Does anybody know if there is a secret/hidden command option or configuration to alter to accomplish that?
Thanks and regards