- Internet of Things Projects with ESP32
- Agus Kurniawan
- 121字
- 2021-06-24 16:02:55
Creating a project
To create a project, follow these steps:
- Create a project called lcddemo. Our main program is the lcddemo.c file.
- Download and copy a project from the TFT library for ESP32: https://github.com/loboris/ESP32_TFT_library. This library consists of the TFT LCD driver for ESP32. We can show text and drawings on the TFT LCD.
- Copy the contents of the components and tools folders into our project. The final result of our project structure can be seen in Figure 2-8:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/55c7808a-e279-44d8-9cca-6a51c2cd418a.png?sign=1739358768-GCEHlXkNwjLoxIXipBJppGF9zfAGeyzP-0-e2b82596d41eefcd0f77ee47be6c6d3d)
Figure 2-8: Project structure for lcddemo
Now, let's write a program to display circles on the LCD to discuss the project's structure. Ensure that all external libraries are placed on the components folder, as shown in Figure 2-7.