Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdaskalov/esp32-idf-tetra
Using esp-idf to build Arduino project with TFT_eSPI library
https://github.com/mdaskalov/esp32-idf-tetra
Last synced: 13 days ago
JSON representation
Using esp-idf to build Arduino project with TFT_eSPI library
- Host: GitHub
- URL: https://github.com/mdaskalov/esp32-idf-tetra
- Owner: mdaskalov
- Created: 2023-02-05T08:24:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T08:38:34.000Z (almost 2 years ago)
- Last Synced: 2024-10-27T23:42:15.757Z (2 months ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using TFT_eSPI and Arduino in a ESP-IDF project
This example will help you build your arduino projects using esp-idf build system.
It assumes that esp-idf is already installed and on your system. Refer to [this](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/index.html) article.
Start by importing the esp-idf environment
```bash
cd esp-idf; . ./export.sh; cd ..
```Don't forget to install and enable ccache - this saves time compiling:
```bash
export IDF_CCACHE_ENABLE=1
```Then configure the project using
```bash
idf.py menuconfig
```In "Arduino Configuration" select "Autostart Arduino setup and loop on boot" to be fully Arduino compatible.
In "ComponentConfig --> TFT_eSPI" configure the pins of your display (I've tested with TTGO T-Display ST7789V)
Then build, flash and start monitoring with:
```bash
idf.py flash monitor
```
In montiotor press `Ctrl-T` `Ctrl-X` to exit.