1| Supported Targets | ESP32 | ESP32-S2 | ESP32-C3 |
2| ----------------- | ----- | -------- | -------- |
3
4# SPI Host Driver Example
5
6(See the README.md file in the upper level 'examples' directory for more information about examples.)
7
8This example aims to show how to use SPI Host driver API, like `spi_transaction_t` and spi_device_queue.
9
10If you are looking for code to drive LCDs in general, rather than code that uses the SPI master, that may be a better example to look at as it uses ESP-IDFs built-in LCD support rather than doing all the low-level work itself, which can be found at `examples/peripherals/lcd/tjpgd/`
11
12## How to Use Example
13
14### Hardware Required
15
16* An ESP development board, with SPI LCD
17
18Connection :
19
20Depends on boards. Refer to `spi_master_example_main.c` No wiring is required on ESP-WROVER-KIT
21
22### Build and Flash
23
24Run `idf.py -p PORT flash monitor` to build, flash and monitor the project.
25
26(To exit the serial monitor, type ``Ctrl-]``.)
27
28See the [Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html) for full steps to configure and use ESP-IDF to build projects.
29
30## Example Output
31
32On ESP-WROVER-KIT there will be:
33
34```
35LCD ID: 00000000
36ILI9341 detected.
37LCD ILI9341 initialization.
38```
39
40At the meantime `ESP32` will be displayed on the connected LCD screen.
41
42## Troubleshooting
43
44For any technical queries, please open an [issue] (https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.
45