Working with Arduino
This chapter contains the following sections. Please read as needed:
Arduino Getting Started
New to Arduino ESP32 development and looking for a quick start? We have prepared a comprehensive Getting Started Tutorial for you.
- Section 0: Getting to Know ESP32
- Section 1: Installing and Configuring Arduino IDE
- Section 2: Arduino Basics
- Section 3: Digital Output/Input
- Section 4: Analog Input
- Section 5: Pulse Width Modulation (PWM)
- Section 6: Serial Communication (UART)
- Section 7: I2C Communication
- Section 8: SPI Communication
- Section 9: Wi-Fi Basics
- Section 10: Web Server
- Section 11: Bluetooth
- Section 12: LVGL GUI Development
- Section 13: Comprehensive Project
Note: This tutorial uses the ESP32-S3-Zero as a reference example, and all hardware code is based on its pinout. Before you start, we recommend checking the pinout of your development board to ensure the pin configuration is correct.
Setting Up Development Environment
1. Installing and Configuring Arduino IDE
- Please refer to the Arduino IDE Installation and Configuration Tutorial to download and install the Arduino IDE and add ESP32 board support.
- Installation instructions and version requirements for the ESP32-S3-Touch-LCD-7 development board:
| ESP32 Board Package Version Requirement | Board Installation Requirement | Board Name |
|---|---|---|
| 3.0.6 or higher | "Install Offline" / "Install Online" | Waveshare 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 Arduino\libraries folder of the example program package. Click this link to download the example programs.
| Library Name | Description | Version | Library Installation Requirement |
|---|---|---|---|
| ESP32_Display_Panel | Display panel control library for ESP32 microcontrollers | v0.1.4 or higher | "Install Online" or "Install Offline" |
| ESP32_IO_Expander | I/O expander library for ESP32 | v0.0.4 or higher | "Install Online" or "Install Offline" |
| lvgl | LVGL graphics library | v8.4.0 | "Install Offline" |
| lv_conf.h | LVGL configuration file | — | "Install Offline" |
Installation Steps:
-
Unzip the downloaded demo package.
-
Copy all folders (ESP32_Display_Panel, ESP32_IO_Expander, etc.) from its
Arduino\librariesdirectory to your Arduino libraries folder.infoThe 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
librariessubfolder within this path. -
For other installation methods, please refer to: Arduino Library Management Tutorial.
Demo
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.