![Internet of Things Projects with ESP32](https://wfqqreader-1252317822.image.myqcloud.com/cover/750/36698750/b_36698750.jpg)
上QQ阅读APP看书,第一时间看更新
Configuring the ESP-WROVER-KIT v4 board
Before we compile and flash our program to the ESP32 board, we should configure our project. In this section, the ESP32 board model is ESP-WROVER-KIT v4. We configure the LCD model and flash size using menuconfig. To do so, follow these steps:
- Open the Terminal and navigate to your project folder.
- Run menuconfig by typing the following command:
$ make menuconfig
- You will get a form as shown in Figure 2-9. Select TFT Display DEMO Configuration from this form:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/b3c4a574-6740-4e44-a405-692c6af9d565.png?sign=1738824562-FYJdMZxB31sNjB8necagkEEiRpAu51x4-0-1e079828577a429b2a0013f94d4e9a16)
Figure 2-9: Configuring the TFT Display demo
- You will get a form as shown in Figure 2-10. You can select Select predefined display configuration:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/cfa9f3d8-ec7b-4391-b9be-e0daf10f4ce3.png?sign=1738824562-5hSUpdENbcTLAgqiCGhLooxls0ZCVI36-0-039c1d0d2a89c52206b79d2a49e6676f)
Figure 2-10: Selecting the predefined display configuration
- You will see a list of TFT modules as shown in Figure 2-11.
- Since we are using ESP-WROVER-KIT v4, we will select the ESP-WROVER-KIT Display option.
- You can select this option by pressing the Tab key on your keyboard:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/56396d17-c076-4f15-a069-22e16d6e9ae9.png?sign=1738824562-NRmxZcOYzU3o0q0O3dBqJmUJO9D7Tivd-0-13abe5a7265407d5d00aa015a27cc811)
Figure 2-11: Selecting ESP-WROVER-KIT Display
- Next, we configure the flash size. Navigate back to the main menu as shown in figure 2-9.
- Select the Serial flasher config menu.
- Then, select the Flash size option.
- After this is selected, you will see a list of flash sizes, as shown in Figure 2-12:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/4302f993-e94d-4fcc-8919-14fd29be7649.png?sign=1738824562-CzgO0YyZkeQOI5s1kggPjBU2gILKTauP-0-1bb8e8e3fa67bff28a53f40fce2db533)
Figure 2-12: Selecting 4MB for flash size
- Select 4 MB for flash size.
- Save this configuration.
- Select Exit to quit menuconfig.
After we run menuconfig, we will get a config file, sdkconfig, as shown in Figure 2-13. Open this file and ensure that this config has a value of CONFIG_SPIFFS_BASE_ADDR= 0x180000. If you have a value 180000 on that config, you should change it to 0x180000:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/bf8ed298-8424-4033-985e-65aa0f4630a6.png?sign=1738824562-Mk2sPE7FYhEOG9f6sLgkwaVXFa68rhOO-0-71b3f1862ee3f3d5851b80b2b3626828)
Figure 2-13: Editing the sdkconfig file
Now, your program is ready to compile and run in the next section.