esp32cam_st7796.ini 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ;***************************************************;
  2. ; ESP32 build with ;
  3. ; - ESP32Cam board ;
  4. ; - st7796 TFT ;
  5. ; - xpt2046 touch controller ;
  6. ;***************************************************;
  7. [env:esp32cam-st7796]
  8. extends = esp32
  9. board = esp32cam
  10. ;ESP32 CAM PINS
  11. build_flags =
  12. ${env.build_flags}
  13. ${esp32.build_flags}
  14. ${esp32.ps_ram}
  15. ;region -- TFT_eSPI build options ------------------------
  16. ${lcd.raspberrypi}
  17. -D USE_HSPI_PORT
  18. ${esp32.hspi} ; Use HSPI hardware SPI bus
  19. -D TFT_CS=15
  20. -D TFT_DC=2
  21. -D TFT_RST=-1 ; 3.3v
  22. -D TFT_BCKL=-1 ; None, configurable via web UI (e.g. 21)
  23. -D TOUCH_CS=0
  24. ;endregion
  25. ; -- Debugging options -----------------------------
  26. ; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
  27. ;region -- Library options -------------------------------
  28. lib_deps =
  29. ${env.lib_deps}
  30. ${esp32.lib_deps}
  31. lib_ignore =
  32. ${env.lib_ignore}
  33. ${esp32.lib_ignore}
  34. ;endregion