acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
Setup70c_ESP32_C3_ILI9341.h (1033B)
1 // Setup for the ESP32 C3 with ILI9341 display 2 // Note SPI DMA with ESP32 C3 is not currently supported 3 4 #define USER_SETUP_ID 70 5 // See SetupX_Template.h for all options available 6 7 #define ILI9341_DRIVER 8 //#define ST7796_DRIVER 9 //#define ILI9488_DRIVER 10 11 // Adafruit qtpy default 12 //TFT_CS 6 13 //TFT_MOSI 7 14 //TFT_MISO 8 15 //TFT_SCLK 10 16 17 // Lolin C3 mini default 18 //TFT_CS 5 19 //TFT_MOSI 4 20 //TFT_MISO 3 21 //TFT_SCLK 2 22 23 //ESP32 C3 generic default 24 //TFT_CS 7 25 //TFT_MOSI 6 26 //TFT_MISO 5 27 //TFT_SCLK 4 28 29 30 #define TFT_CS 7 31 32 #define TFT_MOSI 6 33 #define TFT_MISO 5 34 #define TFT_SCLK 4 35 36 #define TFT_DC 8 37 #define TFT_RST 10 38 39 //#define TOUCH_CS 1 // Optional for touch screen 40 41 #define LOAD_GLCD 42 #define LOAD_FONT2 43 #define LOAD_FONT4 44 #define LOAD_FONT6 45 #define LOAD_FONT7 46 #define LOAD_FONT8 47 #define LOAD_GFXFF 48 49 #define SMOOTH_FONT 50 51 //#define SPI_FREQUENCY 27000000 52 #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 53 54 #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 55 56 #define SPI_TOUCH_FREQUENCY 2500000