nscreen32.ini 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ;***************************************************;
  2. ; YeaCreate Nscreen32 ;
  3. ; - 4" ST7796 TFT 8-biy parallell ;
  4. ; - gt911 touch controller ;
  5. ;***************************************************;
  6. ; untested config
  7. [env:yeacreate-nscreen32]
  8. extends = esp32
  9. board = esp32dev
  10. board_upload.flash_size=16MB
  11. board_upload.maximum_size = 16777216
  12. board_build.partitions = user_setups/esp32/partitions_16MB.csv
  13. build_flags =
  14. ${env.build_flags}
  15. ${esp32.build_flags}
  16. ${esp32.hspi} ; Use HSPI hardware SPI bus
  17. -D HASP_MODEL="YeaCreate Nscreen32"
  18. ;region -- TFT_eSPI build options ------------------------
  19. -D USER_SETUP_LOADED=1
  20. -D ST7796_DRIVER=1
  21. -D ESP32_PARALLEL=1
  22. -D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
  23. -D TFT_WIDTH=320
  24. -D TFT_HEIGHT=480
  25. ; ESP32 pins used for the parallel interface TFT
  26. -D TFT_CS=33 ; Chip select control pin
  27. -D TFT_DC=15 ; Data Command control pin - must use a pin in the range 0-31 also named RS
  28. -D TFT_WR=4 ; Write strobe control pin - must use a pin in the range 0-31
  29. -D TFT_RD=2
  30. -D TFT_D0=12 ; Must use pins in the range 0-31 for the data bus
  31. -D TFT_D1=13 ; so a single register write sets/clears all bits
  32. -D TFT_D2=26
  33. -D TFT_D3=25
  34. -D TFT_D4=19
  35. -D TFT_D5=18
  36. -D TFT_D6=27
  37. -D TFT_D7=14
  38. -D TFT_RST=32 ; Reset pin
  39. ;-D TFT_BCKL=32 ;None, configurable via web UI (e.g. 2 for D4)
  40. -D SUPPORT_TRANSACTIONS
  41. -D TOUCH_DRIVER=911 ; GT911 Capacitive touch panel driver
  42. -D TOUCH_SDA=21
  43. -D TOUCH_SCL=22
  44. -D TOUCH_IRQ=5
  45. -D TOUCH_RST=23
  46. ;-D TOUCH_FREQUENCY=400000
  47. -D I2C_TOUCH_FREQUENCY=400000
  48. -D SPI_FREQUENCY=40000000
  49. -D SPI_READ_FREQUENCY=20000000
  50. ;endregion
  51. ; -- Debugging options -----------------------------
  52. ; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
  53. ;region -- Library options -------------------------------
  54. lib_deps =
  55. ${env.lib_deps}
  56. ${esp32.lib_deps}
  57. git+https://github.com/netwizeBE/arduino-goodix.git
  58. lib_ignore =
  59. ${env.lib_ignore}
  60. ${esp32.lib_ignore}
  61. ;endregion