Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. menu "GC9A01 LCD Config"
  2. config GC9A01_Width
  3. int "GC9A01 LCD Width"
  4. range 64 1024
  5. default 240
  6. config GC9A01_Height
  7. int "GC9A01 LCD Height"
  8. range 64 1024
  9. default 240
  10. #---------------------------------------------
  11. choice GC9A01_SPI_HOST
  12. prompt "GC9A01 SPI HOST"
  13. default USE_SPI3_HOST
  14. help
  15. Hardware SPI , HSPI=SPI2 , VSPI=SPI3
  16. config USE_SPI1_HOST
  17. bool "USE SPI1 HOST"
  18. config USE_SPI2_HOST
  19. bool "USE SPI2 HOST"
  20. config USE_SPI3_HOST
  21. bool "USE SPI3 HOST"
  22. config USE_SPI4_HOST
  23. bool "USE SPI4 HOST"
  24. endchoice
  25. config GC9A01_SPI_HOST
  26. int
  27. default 0 if USE_SPI1_HOST
  28. default 1 if USE_SPI2_HOST
  29. default 2 if USE_SPI3_HOST
  30. default 3 if USE_SPI4_HOST
  31. #---------------------------------------------
  32. config GC9A01_PIN_NUM_SCK
  33. int "LCD SPI SCK Pin"
  34. range 0 34
  35. default 18
  36. help
  37. Must Support SPI SCK
  38. config GC9A01_PIN_NUM_MOSI
  39. int "LCD SPI MOSI Pin"
  40. range 0 34
  41. default 23
  42. help
  43. Must Support SPI MOSI
  44. config GC9A01_PIN_NUM_CS
  45. int "LCD SPI CS Pin"
  46. range 0 34
  47. default 05
  48. config GC9A01_PIN_NUM_DC
  49. int "LCD DC(Data or Command) GPIO Pin Number"
  50. range 0 34
  51. default 21
  52. config GC9A01_SPI_SCK_FREQ_M
  53. int "SPI Clock Freq in MHz"
  54. range 1 80
  55. default 40
  56. config GC9A01_CONTROL_BACK_LIGHT_USED
  57. bool "LCD Control Back Light"
  58. default y
  59. config GC9A01_PIN_NUM_BCKL
  60. int "LCD BL(Back Light) GPIO Pin Number"
  61. depends on GC9A01_CONTROL_BACK_LIGHT_USED
  62. range 0 34
  63. default 19
  64. #---------------------------------------------
  65. choice GC9A01_CONTROL_BACK_LIGHT_MODE
  66. prompt "GC9A01b Control Back Light Mode"
  67. default GC9A01_BACK_LIGHT_MODE_PWM
  68. depends on GC9A01_CONTROL_BACK_LIGHT_USED
  69. help
  70. PWM use LEDC_TIMER_0 and LEDC_CHANNEL_0
  71. config GC9A01_BACK_LIGHT_MODE_On_OFF
  72. bool "USE GPIO ON/OF"
  73. config GC9A01_BACK_LIGHT_MODE_PWM
  74. bool "USE PWM"
  75. endchoice
  76. config GC9A01_CONTROL_BACK_LIGHT_MODE
  77. int
  78. default 0 if GC9A01_BACK_LIGHT_MODE_On_OFF
  79. default 1 if GC9A01_BACK_LIGHT_MODE_PWM
  80. #---------------------------------------------
  81. config GC9A01_RESET_USED
  82. bool "GC9A01 RESET Pin Used"
  83. default y
  84. help
  85. Use GC9A01 Hard Reset Pin
  86. config GC9A01_PIN_NUM_RST
  87. int "LCD RST GPIO Pin Number"
  88. depends on GC9A01_RESET_USED
  89. range 0 34
  90. default 22
  91. config GC9A01_BUFFER_MODE
  92. bool "Enable Buffer Mode"
  93. default y
  94. help
  95. Disable for Direct Mode
  96. config GC9A01_BUFFER_MODE_PSRAM
  97. bool "Enable buffer allocation on PSRAM"
  98. default n
  99. depends on GC9A01_BUFFER_MODE
  100. help
  101. Allocates Buffer in PSRAM instead of internal
  102. Only working for ESP32-S3 family with PSRAM
  103. config GC9A01_BUFFER_SCREEN_FAST_MODE
  104. bool "Don't Convert Buffer for Screen_Load() & Screen_Shot()"
  105. default n
  106. depends on GC9A01_BUFFER_MODE
  107. help
  108. If Enabled , the Screen_load() & Screen_Shot() don't run SwapBytes() for Buffer
  109. & Direct Save Data to SPI Buffer,So the data must manually SwapBytes before Send to LCD.
  110. endmenu