acidportal- 😈 Worlds smallest Evil Portal on a LilyGo T-QT |
git clone git://git.acid.vegas/acidportal.git |
Log | Files | Refs | Archive | README | LICENSE |
Setup70f_ESP32_S2_ST7735.h (1018B)
1 // Setup for the ESP32 S2 with ST7735 80x160 display 2 // See SetupX_Template.h for all options available 3 4 #define USER_SETUP_ID 70 5 6 #define ST7735_DRIVER 7 8 #define TFT_SDA_READ // Display has a bidirectional SDA pin (no MISO) 9 10 #define TFT_WIDTH 80 11 #define TFT_HEIGHT 160 12 13 #define ST7735_GREENTAB160x80 14 //#define ST7735_REDTAB160x80 15 16 //#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 17 #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 18 19 #define TFT_INVERSION_ON 20 // #define TFT_INVERSION_OFF 21 22 // Typical board default pins 23 #define TFT_CS 10 // 10 or 34 24 25 #define TFT_MOSI 11 // 11 or 35 26 #define TFT_SCLK 12 // 12 or 36 27 28 #define TFT_DC 14 29 #define TFT_RST 15 30 31 #define LOAD_GLCD 32 #define LOAD_FONT2 33 #define LOAD_FONT4 34 #define LOAD_FONT6 35 #define LOAD_FONT7 36 #define LOAD_FONT8 37 #define LOAD_GFXFF 38 39 #define SMOOTH_FONT 40 41 // FSPI port must be used for SDA reads. Do not use #define USE_HSPI_PORT 42 43 #define SPI_FREQUENCY 27000000 44 #define SPI_READ_FREQUENCY 16000000