上QQ阅读APP看书,第一时间看更新
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:
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.