User_Setup.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ---------------------------------------------------------------------------
  2. // TFT_eSPI User_Setup.h for ESP32-DEVKIT V1 + GC9A01 240x240 round TFT
  3. //
  4. // INSTRUCTIONS:
  5. // Copy this file to your TFT_eSPI library folder, replacing the existing
  6. // User_Setup.h, then recompile. Alternatively, place it in the sketch
  7. // folder if your TFT_eSPI version supports sketch-local setup files.
  8. //
  9. // Pin numbers MUST match the wiring in config.h.
  10. // ---------------------------------------------------------------------------
  11. // Driver selection
  12. #define GC9A01_DRIVER
  13. // Resolution
  14. #define TFT_WIDTH 240
  15. #define TFT_HEIGHT 240
  16. // SPI pins — ESP32-DEVKIT V1 VSPI bus
  17. #define TFT_MOSI 23
  18. #define TFT_SCLK 18
  19. #define TFT_CS 26
  20. #define TFT_DC 25
  21. #define TFT_RST 27
  22. // SPI clock frequency
  23. #define SPI_FREQUENCY 27000000
  24. #define SPI_READ_FREQUENCY 20000000
  25. // Load built-in fonts
  26. #define LOAD_GLCD
  27. #define LOAD_FONT2
  28. #define LOAD_FONT4
  29. #define LOAD_FONT6
  30. #define LOAD_FONT7
  31. #define LOAD_FONT8
  32. #define LOAD_GFXFF
  33. // Enable smooth (TrueType) font support
  34. #define SMOOTH_FONT