acidportal

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

Setup107_RP2040_ILI9341_16bit_parallel.h (2934B)

      1 // This setup is for the RP2040 processor only when used with 8 bit parallel displays
      2 // See SetupX_Template.h for all options available
      3 #define USER_SETUP_ID 107
      4 
      5 ////////////////////////////////////////////////////////////////////////////////////////////
      6 // Interface
      7 ////////////////////////////////////////////////////////////////////////////////////////////
      8 //#define TFT_PARALLEL_8_BIT
      9 #define TFT_PARALLEL_16_BIT
     10 
     11 ////////////////////////////////////////////////////////////////////////////////////////////
     12 // Display driver type
     13 ////////////////////////////////////////////////////////////////////////////////////////////
     14 #define ILI9341_DRIVER
     15 //#define ILI9481_DRIVER // Tested
     16 //#define HX8357B_DRIVER // Tested
     17 //#define HX8357C_DRIVER // Tested
     18 //#define SSD1963_800_DRIVER
     19 
     20 ////////////////////////////////////////////////////////////////////////////////////////////
     21 // RP2040 pins used
     22 ////////////////////////////////////////////////////////////////////////////////////////////
     23 
     24 // These pins can be moved and are controlled directly by the library software
     25 #define TFT_RST   18  // Reset pin
     26 #define TFT_CS    19  // Do not define if chip select control pin permanently connected to 0V
     27 //#define TFT_RD   -1   // Do not define, read pin must be permanently connected to 3V3
     28 
     29 // Note: All the following pins are PIO hardware configured and driven
     30   #define TFT_WR   16    // Write strobe pin
     31   #define TFT_DC   17    // Data Command control pin
     32 
     33   // PIO requires these to be sequentially increasing
     34   #define TFT_D0    0
     35   #define TFT_D1    1
     36   #define TFT_D2    2
     37   #define TFT_D3    3
     38   #define TFT_D4    4
     39   #define TFT_D5    5
     40   #define TFT_D6    6
     41   #define TFT_D7    7
     42   #define TFT_D8    8
     43   #define TFT_D9    9
     44   #define TFT_D10  10
     45   #define TFT_D11  11
     46   #define TFT_D12  12
     47   #define TFT_D13  13
     48   #define TFT_D14  14
     49   #define TFT_D15  15
     50 //*/
     51 
     52 ////////////////////////////////////////////////////////////////////////////////////////////
     53 // Fonts to be available
     54 ////////////////////////////////////////////////////////////////////////////////////////////
     55 #define LOAD_GLCD   // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
     56 #define LOAD_FONT2  // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
     57 #define LOAD_FONT4  // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
     58 #define LOAD_FONT6  // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
     59 #define LOAD_FONT7  // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
     60 #define LOAD_FONT8  // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
     61 #define LOAD_GFXFF  // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
     62 
     63 #define SMOOTH_FONT
     64 
     65 ////////////////////////////////////////////////////////////////////////////////////////////