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?
-
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– hcheung2021年01月29日 00:05:21 +00:00Commented Jan 29, 2021 at 0:05
-
in Arduino IDE you can set the sketchbook folderJuraj– Juraj ♦2021年01月29日 05:22:14 +00:00Commented Jan 29, 2021 at 5:22
-
you can use GIT; all the config is "rest"ful; lives in files.dandavis– dandavis2021年01月29日 05:25:26 +00:00Commented Jan 29, 2021 at 5:25
-
1Has someone ever tried to run the Arduino-cli in a docker container? Just one crazy thoughtchrisl– chrisl2021年01月29日 08:43:30 +00:00Commented Jan 29, 2021 at 8:43
1 Answer 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.
-
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.2021年01月30日 07:03:52 +00:00Commented Jan 30, 2021 at 7:03