esp-idf/examples/peripherals/spi_master/lcd
Djordje Nedic facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
..
main examples/spi_master: Fixed SPI read (keeping CS active) in SPI master example 2022-03-29 08:43:16 +02:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
README.md ci: temporarily disable s3 build for a few examples 2021-09-16 12:20:11 +08:00

Supported Targets ESP32 ESP32-S2 ESP32-C3

SPI Host Driver Example

(See the README.md file in the upper level 'examples' directory for more information about examples.)

This example aims to show how to use SPI Host driver API, like spi_transaction_t and spi_device_queue.

If 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/

How to Use Example

Hardware Required

  • An ESP development board, with SPI LCD

Connection :

Depends on boards. Refer to spi_master_example_main.c No wiring is required on ESP-WROVER-KIT

Build and Flash

Run idf.py -p PORT flash monitor to build, flash and monitor the project.

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

Example Output

On ESP-WROVER-KIT there will be:

LCD ID: 00000000
ILI9341 detected.
LCD ILI9341 initialization.

At the meantime ESP32 will be displayed on the connected LCD screen.

Troubleshooting

For any technical queries, please open an [issue] (https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.