acidportal

- 😈 Worlds smallest Evil Portal on a LilyGo T-QT
git clone git://git.acid.vegas/acidportal.git
Log | Files | Refs | Archive | README | LICENSE

Setup71_ESP32_S2_ST7789.h (646B)

      1 // Setup for the ESP32 S2 with ST7789 display
      2 // Note SPI DMA with ESP32 S2 is not currently supported
      3 #define USER_SETUP_ID 71
      4 // See SetupX_Template.h for all options available
      5 
      6 #define ST7789_DRIVER     // Configure all registers
      7 
      8 
      9 #define TFT_CS   34 //     10 or 34
     10 #define TFT_MOSI 35 //     11 or 35
     11 #define TFT_SCLK 37 //     12 or 36
     12 #define TFT_MISO 36 //     13 or 37
     13 
     14 #define TFT_DC   33
     15 #define TFT_RST  -1
     16 
     17 #define LOAD_GLCD
     18 #define LOAD_FONT2
     19 #define LOAD_FONT4
     20 #define LOAD_FONT6
     21 #define LOAD_FONT7
     22 #define LOAD_FONT8
     23 #define LOAD_GFXFF
     24 
     25 #define SMOOTH_FONT
     26 
     27 #define SPI_FREQUENCY   27000000
     28 
     29 #define SPI_TOUCH_FREQUENCY  2500000