You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.0 KiB

9 months ago
  1. // Setup for the ESP32 C3 with ILI9341 display
  2. // Note SPI DMA with ESP32 C3 is not currently supported
  3. #define USER_SETUP_ID 70
  4. // See SetupX_Template.h for all options available
  5. #define ILI9341_DRIVER
  6. //#define ST7796_DRIVER
  7. //#define ILI9488_DRIVER
  8. // Adafruit qtpy default
  9. //TFT_CS 6
  10. //TFT_MOSI 7
  11. //TFT_MISO 8
  12. //TFT_SCLK 10
  13. // Lolin C3 mini default
  14. //TFT_CS 5
  15. //TFT_MOSI 4
  16. //TFT_MISO 3
  17. //TFT_SCLK 2
  18. //ESP32 C3 generic default
  19. //TFT_CS 7
  20. //TFT_MOSI 6
  21. //TFT_MISO 5
  22. //TFT_SCLK 4
  23. #define TFT_CS 7
  24. #define TFT_MOSI 6
  25. #define TFT_MISO 5
  26. #define TFT_SCLK 4
  27. #define TFT_DC 8
  28. #define TFT_RST 10
  29. //#define TOUCH_CS 1 // Optional for touch screen
  30. #define LOAD_GLCD
  31. #define LOAD_FONT2
  32. #define LOAD_FONT4
  33. #define LOAD_FONT6
  34. #define LOAD_FONT7
  35. #define LOAD_FONT8
  36. #define LOAD_GFXFF
  37. #define SMOOTH_FONT
  38. //#define SPI_FREQUENCY 27000000
  39. #define SPI_FREQUENCY 40000000 // Maximum for ILI9341
  40. #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V
  41. #define SPI_TOUCH_FREQUENCY 2500000