Arduino IDE 库位置
Arduino IDE library location
我有一个使用 ArduinoJson 5 的 Arduino 项目 WiFiManager。ArduinoJson 安装在我的系统中并且项目编译正常:
我决定转向 VisualStudio Code IDE。为此,我需要从 Arduino IDE 复制库 ArduinoJson 5。我在我的 Windows 10 机器上找到了 /Users/<username>/Documents/Arduino/
个库。但是没有 ArduinoJson 5 库。它位于哪里?
来自 Arduino 手册:
https://www.arduino.cc/en/hacking/libraries
User-created libraries as of version 0017 go in a subdirectory of your
default sketch directory. For example, on OSX, the new directory would
be ~/Documents/Arduino/libraries/. On Windows, it would be My
Documents\Arduino\libraries. To add your own library, create a new
directory in the libraries directory with the name of your library.
The folder should contain a C or C++ file with your code and a header
file with your function and variable declarations. It will then appear
in the Sketch | Import Library menu in the Arduino IDE.
Note: for users of versions previous to 0017, libraries belong in a
subdirectory of the Arduino application directory:
ARDUINO/lib/targets/libraries. For version 0017, the libraries
directory was moved to make them more convenient to install and use.
https://www.arduino.cc/en/Guide/Libraries
Please note: Arduino libraries are managed in three different places:
inside the IDE installation folder, inside the core folder and in the
libraries folder inside your sketchbook.
我有一个使用 ArduinoJson 5 的 Arduino 项目 WiFiManager。ArduinoJson 安装在我的系统中并且项目编译正常:
我决定转向 VisualStudio Code IDE。为此,我需要从 Arduino IDE 复制库 ArduinoJson 5。我在我的 Windows 10 机器上找到了 /Users/<username>/Documents/Arduino/
个库。但是没有 ArduinoJson 5 库。它位于哪里?
来自 Arduino 手册:
https://www.arduino.cc/en/hacking/libraries
User-created libraries as of version 0017 go in a subdirectory of your default sketch directory. For example, on OSX, the new directory would be ~/Documents/Arduino/libraries/. On Windows, it would be My Documents\Arduino\libraries. To add your own library, create a new directory in the libraries directory with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE.
Note: for users of versions previous to 0017, libraries belong in a subdirectory of the Arduino application directory: ARDUINO/lib/targets/libraries. For version 0017, the libraries directory was moved to make them more convenient to install and use.
https://www.arduino.cc/en/Guide/Libraries
Please note: Arduino libraries are managed in three different places: inside the IDE installation folder, inside the core folder and in the libraries folder inside your sketchbook.