Arduino Library Manager Tutorial

From Waveshare Wiki
Jump to: navigation, search

Install Library

The Arduino IDE library manager is used to manage the driver library that the demo calls, and we will provide a corresponding driver library for each ESP32 board, so you can choose the appropriate installation method according to your case.

Install Online

The following is an example of installing Adafruit NeoMatrix, if you install library, the operation steps are similar.
  • Open Arduino IDE:

①. Select LIBRARY MANAGER in the sidebar;
②. Enter the name of the library you want to install Adafruit NeoMatrix in the search box;
③. Select the library version in the box. If there are no special requirements, default to the latest version. Click on INSTALL.
ESP32-S3-AMOLED-1.91-Ar-lib-01.png

When installing the library, if prompted to install other dependent libraries, please click "Install All". Otherwise, it may cause some demos or programs to fail to compile properly.

ESP32-S3-AMOLED-1.91-Ar-lib-02.png

  • After clicking Install,

①. The software window displays the installation progress of the library;
②. After installation, the status of the library will be x.x.x version installed.
ESP32-S3-AMOLED-1.91-Ar-lib-03.png

Note: If you need to uninstall a library, find the corresponding library, click "REMOVE" in the box, and wait for the uninstallation to complete.

Install Offline

The following is an example of installing the library required by "ESP32-S3-ETH-Demo", if you install other library, the operation steps are similar.
  • Copy the library files provided by Waveshare to the libraries folder in the project folder
  • Where waveshrare is the user name, the user name varies from person to person
  • If there is no "libraries" folder in the project folder directory, you need to create this folder and make sure the name is correct, and the subsequent library files will be stored here
  • When copying the library, be sure to clean or migrate any other libraries in the directory first to avoid replacement or library conflicts

ESP32-S3-AMOLED-1.91-Ar-lib-08.png
ESP32-S3-AMOLED-1.91-Ar-lib-05.png

  • The project folder path can be viewed underFile->preferences->Sketchbook location

ESP32-S3-AMOLED-1.91-Ar-lib-06.png