Skip to content

ESP Terminal 3.5-inch Display PlatformIO Tutorial

Overall


This tutorial uses both RGB and SPI versions. Take the Terminal-SPI as an example.

Software Preparation


First download Visual Studio Code on https://code.visualstudio.com/. Choose the version that is compatible with your computer system and download it Vscode-download.jpg

Open VSCode and click on Extension, search for Python and install. Platformio-terminal-python.png

Search for PlatformIO and install it. Platformio-terminal-platformio.png

Create new projects


Click on the PlatformIO icon, click the quik access "Open", then click "+New Project" Platformio-terminal-new-project.png

Add the project name. The board select "ESP32-S3-DevKitC-1-N8(8 MB QD, No PSRAM)", framework select Arduino Platformio-terminal-project-wizard.png

The main part of the program will be written in main.cpp Platformio-terminal-main.png

Download the lvgl and LovyanGFX library Platformio-terminal-library.png

Platformio-terminal-library-lvgl.png

Platformio-terminal-library-lvgl-1.png

Platformio-terminal-library-lvgl-2.png

[Platformio-terminal-library-lovyanGFX.png

Platformio-terminal-library-lovyanGFX-1.png

Platformio-terminal-library-lovyanGFX-2.png

Platformio-terminal-library-lovyanGFX-3.png

We can see that the library has been added successfully! Platformio-terminal-library-added.png

Configure the LVGL library


Right-click the lvgl and open in files explorer Platformio-terminal-open-lvgl.png

Move the demos and examples folder to src folder Platformio-terminal-copy.png

Platformio-terminal-copy-1.png

Place the lv_conf.h file under the esp32-s3-devkit-1 directory Platformio-terminal-lv conf.png

Put the FT6236.cpp file into the /src folder Platformio-terminal-FT-CPP.png

Put the FT6236.h file in the /include folder Platformio-terminal-FT-H.png

Compile and upload the code


After the configuration is complete, write the code in main.cpp. Platformio-terminal-write-code.png

Compile the program Platformio-terminal-compile.png

Then we can upload the code to the board. Platformio-terminal-upload.png

Resources