Skip to content

zenixls2/esp32_screen_demo

Repository files navigation

FPS test: ESP32 DevkitC V4

The pin set is defined in platformio.ini
Port is also defined in the file using /dev/ttyUSB1.

Any monitor using ST7789\_v2 controller should work properly with this setup.

Prepare:

virtualenv venv
source venv/bin/activate
pip install platformio

To compile and upload:

pio run -t upload

To monitor

pio device monitor

HC_SR04 setup (the ultrasonic sensor)

  • VCC: 5v or 3.3v both OK
  • TRIG: GPIO22
  • ECHO: GPIO21

And change the flag -DHC_SR04=1 in the platformio.ini to switch it on or off.
If we switch it on, from the screen we'll see the text of distance it detects in centimeter.

About

using TFT_eSPI lib to write GUI program using DMA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published