esp32-dev_ili9488.ini 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ;***************************************************;
  2. ; Generic ESP32 build with ;
  3. ; - ili9488 TFT SPI 4-WIRE ;
  4. ; - xpt2046 touch controller ;
  5. ;***************************************************;
  6. [env:esp32dev-ili9488]
  7. extends = esp32
  8. board = esp32dev
  9. build_flags =
  10. ${env.build_flags}
  11. ${esp32.build_flags}
  12. ;region -- TFT_eSPI build options ------------------------
  13. -D USER_SETUP_LOADED=1
  14. -D ILI9488_DRIVER=1
  15. -D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
  16. -D TFT_WIDTH=320
  17. -D TFT_HEIGHT=480
  18. -D TFT_MISO=19 ;// (leave TFT SDO disconnected if other SPI devices share MISO)
  19. -D TFT_MOSI=23
  20. -D TFT_SCLK=18
  21. -D TFT_CS=15 ;// Chip select control pin
  22. -D TFT_DC=2 ;// Data Command control pin
  23. -D TFT_RST=4 ;// Reset pin (could connect to RST pin)
  24. -D TFT_BCKL=5 ;None, configurable via web UI (e.g. 2 for D4)
  25. -D SUPPORT_TRANSACTIONS
  26. -D TOUCH_CS=22
  27. -D TOUCH_DRIVER=2046 ; XPT2606 Resistive touch panel driver
  28. -D SPI_FREQUENCY=27000000
  29. -D SPI_TOUCH_FREQUENCY=2500000
  30. -D SPI_READ_FREQUENCY=20000000
  31. ;endregion
  32. ; -- Debugging options -----------------------------
  33. ; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
  34. ;region -- Library options -------------------------------
  35. lib_deps =
  36. ${env.lib_deps}
  37. ${esp32.lib_deps}
  38. lib_ignore =
  39. ${env.lib_ignore}
  40. ${esp32.lib_ignore}
  41. ;endregion