Skip to content

DefiantPanda1337/CYD-ESP32-LVGL-touch-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CYD-ESP32-LVGL-touch-example

Example code for the ESP32 dev board known as the CYD or Cheap Yellow Display. AKA ESP32-2432S028, ESP32-2432S024R. This project is a beginner example. It is heavily commented code, and coded without classes or separate files. Every device on the board is used in this example, as well as LVGL for graphics. esp32-2432s028-demo-example

Usage

This is for platform.io. Load the project files, and adjust platformio.ini to your needs. Switch between ILI9341 and ST7796 by commenting in/out the code you need in platform.io.

This Demo Tests For

*Backlight
*TFT_eSPI display driver
*LVGL graphics
*LED toggle (random color)
*Speaker buzzer
*LDS/CdS/photoresistor light sensor
*XPT2040 Touchscreen
*SD/TF Card

Videos

Touch, LED, Speaker

esp32-2432s028-touch.mp4

Light Sensor (LDR, CdS, photoresistor)

esp32-2432s028-ldr-cds-light-sensor.mp4

Credits

Code from @AllanOricil helped a lot: https://github.com/AllanOricil/esp32-lvgl-lcd-touch-sd-card

Software and Libraries Used

LVGL: An open-source graphics library for creating embedded GUIs.
TFT_eSPI: A graphics library for ESP8266 and ESP32 that supports different TFT displays.
XPT2046_Bitbang: A library for interfacing with XPT2046 resistive touch controllers using bit-banging for SPI communication.
PlatformIO: Development platforms used for writing, compiling, and uploading the code to ESP32.

About

Example code for the CYD or Cheap Yellow Display, the ESP32-2432S028 or similar models. This code tests all devices on the board.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 74.0%
  • C++ 26.0%