acidportal

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

Setup23_TTGO_TM.h (1095B)

      1 // Setup for the TTGO TM (Music) ESP32 board with 2.4" ST7789V display
      2 #define USER_SETUP_ID 23
      3 
      4 // See SetupX_Template.h for all options available
      5 
      6 #define ST7789_DRIVER
      7 
      8 #define TFT_SDA_READ // Read from display, it only provides an SDA pin
      9 
     10 #define TFT_MISO 19  // Must be defined even though it is not used
     11 #define TFT_MOSI 23  // Connected to display SDA line
     12 #define TFT_SCLK 18
     13 
     14 #define TFT_CS   05
     15 #define TFT_DC   16
     16 #define TFT_RST  17
     17 
     18 #define TOUCH_CS -1
     19 
     20 #define TFT_WIDTH  240
     21 #define TFT_HEIGHT 320
     22 
     23 //#define TFT_RGB_ORDER TFT_RGB  // Colour order Red-Green-Blue
     24 #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red
     25 
     26 // Black and white swap option
     27 //#define TFT_INVERSION_ON
     28 #define TFT_INVERSION_OFF
     29 
     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 
     38 #define SMOOTH_FONT
     39 
     40 #define SPI_FREQUENCY  40000000     // This display also seems to work reliably at 80MHz
     41 //#define SPI_FREQUENCY  80000000
     42 
     43 #define SPI_READ_FREQUENCY  6000000 // 6 MHz is the maximum SPI read speed for the ST7789V