1

I'm using Arduino IDE for a variety of projects.

The libraries and boards used in different projects are different and I would like to have a customized environment for each project.

Eg: In a project involving an Arduino, I don't want all the ESP boards or Adafruit libraries that I might use on another project.

Python has something called Virtual Environments, where you can switch between environments and have a different setup of libraries and configurations for each project.

Is there something like this I can configure for Arduino?

4
  • Development environment like PlatformIO allow you to have your dependency libraries installed on per-project basis. It can be installed on Atom Editor or VSCode as a plug-in. – hcheung Jan 29 at 0:05
  • in Arduino IDE you can set the sketchbook folder – Juraj Jan 29 at 5:22
  • you can use GIT; all the config is "rest"ful; lives in files. – dandavis Jan 29 at 5:25
  • 1
    Has someone ever tried to run the Arduino-cli in a docker container? Just one crazy thought – chrisl Jan 29 at 8:43
-1

Sorry, but in Arduino IDE no such functionality as virtual enviroment. To add your own version of libraries to each projects you may only add it (libraries) directly to a project dir.

1
  • in Arduino IDE you can select the sketchbook folder. it contains the sketches, libraries, custom hardware specs. that is a much cleaner solution then adding libraries to sketch. – Juraj Jan 30 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.