1. Open Arduino IDE 2.0, select Library Manager
in the sidebar
2. Search for the relevant library name (M5Unit-ENV for example) in the search box
, and click install
Note:
If you are prompted to install another library as a dependency when installing a library, it is recommended that you click Install All
, otherwise it may cause some functionality to be abnormal or even unusable.
3. Wait for the installation to be completed and ready to use
1.Open Arduino IDE, select Tools
->Library Management
2.Search for the relevant library name in the search box
(using M5Unit-ENV as an example)
3.Click on Install
Note:
If you are prompted to install another library as a dependency when installing a library, it is recommended that you click Install All
, otherwise it may cause some functionality to be abnormal or even unusable.
4.Wait for installation to be completed and ready for use
1.Type the following command in the terminal and wait for it to install
brew update
brew install arduino-cli
2.If you type arduino-cli
in the terminal, the installation is successful when you get the following screen
1.Select the appropriate installation file on this Page
2.Unzip the downloaded .zip file and install it
3.Just add the installation path of the file to the system PATH
environment variable
4.If you type arduino-cli
in the terminal, the installation is successful when you get the following screen
1.Find the appropriate library
arduino-cli lib search LibraryName
Eg:
$ arduino-cli lib search wifimanager
Name: "WiFiManager"
Author: tzapu
Maintainer: tzapu
Sentence: ESP8266 WiFi Connection manager with fallback web configuration portal
Paragraph: Library for configuring ESP8266 modules WiFi credentials at runtime.
Website: https://github.com/tzapu/WiFiManager.git
Category: Communication
Architecture: esp8266
Types: Contributed
Versions: [0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0-beta, 0.15.0]
2.Installation library
arduino-cli lib install WiFiManager
Eg:
$ arduino-cli lib install WiFiManager
WiFiManager depends on WiFiManager@0.15.0
Downloading WiFiManager@0.15.0...
WiFiManager@0.15.0 downloaded
Installing WiFiManager@0.15.0...
Installed WiFiManager@0.15.0