Skip to main content

Working with Arduino

This chapter includes the following sections. Please read as needed:

Setting Up the Development Environment

1. Installing and Configuring the Arduino IDE

ESP32 Board Package Version RequirementBoard Installation RequirementBoard Name
3.0.6 or higher"Offline" / "Online" InstallationWaveshare ESP32-S3-Touch-LCD-7

2. Installing Libraries

To successfully run programs on the Arduino IDE, you also need to install the required libraries. The library files for the ESP32-S3-Touch-LCD-7 are located in the examples/Arduino/libraries folder of the example package. Click this link to download the example programs.

Library NameDescriptionVersionLibrary Installation Requirement
ESP32_Display_PanelDisplay panel control library for ESP32 microcontrollersv0.1.4 or higher"Online Installation" or "Offline Installation"
ESP32_IO_ExpanderI/O expander library for ESP32v0.0.4 or higher"Online" or "Offline Installation"
lvglLVGL graphics libraryv8.4.0"Offline Installation"
lv_conf.hLVGL v8 configuration file-"Offline Installation"
LVGL Version Selection

09_lvgl_v8_demo uses LVGL v8.4.0, while 10_lvgl_v9_demo uses LVGL v9.5.0. The two examples depend on different versions. Install the corresponding LVGL_v8.4.0.7z or LVGL_v9.5.0.7z archive from the example repository for the selected example.

Installation Steps:

  1. Download or clone the example.

  2. Copy all folders (ESP32_Display_Panel, ESP32_IO_Expander, etc.) from its examples/Arduino/libraries directory to your Arduino libraries folder.

    info

    The path to the Arduino libraries folder is typically: c:/Users/<username>/Documents/Arduino/libraries.

    You can also locate it in the Arduino IDE by going to File > Preferences and checking the "Sketchbook location". The libraries folder is the libraries subfolder within this path.

  3. For other installation methods, please refer to: Arduino Library Management Tutorial.

Example

Want to quickly learn how to drive each interface? We have prepared a series of examples and related tutorials based on the Arduino IDE to help you quickly understand the use of each interface.