Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spytaspund/esp32-ili9341-lvgl-template
Example code for esp32 running lvgl with connected ili9341 + touch
https://github.com/spytaspund/esp32-ili9341-lvgl-template
esp32 lvgl lvgl-esp32 platformio tft-display
Last synced: 4 months ago
JSON representation
Example code for esp32 running lvgl with connected ili9341 + touch
- Host: GitHub
- URL: https://github.com/spytaspund/esp32-ili9341-lvgl-template
- Owner: spytaspund
- Created: 2024-08-15T16:41:05.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T17:02:06.000Z (6 months ago)
- Last Synced: 2024-09-29T15:15:21.263Z (4 months ago)
- Topics: esp32, lvgl, lvgl-esp32, platformio, tft-display
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Example code for esp32 running lvgl with ili9341 display + touch!![chrome_ckHxQ8aCs3](https://github.com/user-attachments/assets/58ad0c5c-3840-488f-a939-1f2b276b1c4e)
Built for PlatformIO. Libraries used:
* TFT_eSPI v2.5.43
* LVGL v8.4.0
---
### Instructions to suit your setup (dublicated in main.cpp):
1. Open .pio/libdeps/[your_board]/TFT_eSPI/User_Setup.h
2. Edit these lines:
* Line 45 - change ili9341 to your display driver
* Lines 212-217 - write your own pins display connected to
* Line 230 - OPTIONAL! If you have touchscreen on your display. But, if you comment this line, this code will break!
3. Go back to src/main.cpp (this file)
4. Edit these lines:
* Line 16-17 - your display resolution
* Line 38 - OPTIONAL! If you have touch and you want to use it, you NEED to recalibrate it to get proper touch calData. Then, replace caldata from this sketch with yours.And that's all! Now you can upload your sketch to the board, and you're done!