acidportal

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

Setup31_ST7796_Parallel_STM32.h (2113B)

      1         ////////////////////////////////////////////////////
      2         // Setup for Nucleo 64 or 144 and ILI9341 display //
      3         ////////////////////////////////////////////////////
      4 #define USER_SETUP_ID 31
      5         
      6 // See SetupX_Template.h for all options available
      7 
      8 // Define STM32 to invoke optimised processor support
      9 #define STM32
     10 
     11 // Defining the board allows the library to optimise the performance
     12 // for UNO compatible "MCUfriend" style shields
     13 #define NUCLEO_64_TFT
     14 //#define NUCLEO_144_TFT
     15 
     16 // Tell the library to use 8 bit parallel mode(otherwise SPI is assumed)
     17 #define TFT_PARALLEL_8_BIT
     18 
     19 // Define the display driver chip type
     20 #define ST7796_DRIVER
     21 //#define ILI9481_DRIVER
     22 
     23 // Define the Nucleo 64/144 pins used for the parallel interface TFT
     24 // The pins can be changed here but these are the ones used by the
     25 // common "MCUfriend" shields
     26 #define TFT_CS   A3  // Chip select control pin
     27 #define TFT_DC   A2  // Data Command control pin
     28 #define TFT_RST  A4  // Reset pin
     29 
     30 #define TFT_WR   A1  // Write strobe control pin 
     31 #define TFT_RD   A0  // Read pin
     32 
     33 #define TFT_D0   D8  // 8 bit parallel bus to TFT
     34 #define TFT_D1   D9
     35 #define TFT_D2   D2
     36 #define TFT_D3   D3
     37 #define TFT_D4   D4
     38 #define TFT_D5   D5
     39 #define TFT_D6   D6
     40 #define TFT_D7   D7
     41 
     42 // Fonts to be available
     43 #define LOAD_GLCD   // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
     44 #define LOAD_FONT2  // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
     45 #define LOAD_FONT4  // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
     46 #define LOAD_FONT6  // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
     47 #define LOAD_FONT7  // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
     48 #define LOAD_FONT8  // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
     49 #define LOAD_GFXFF  // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
     50 
     51 // STM32 support for smooth fonts via program memory (FLASH) arrays
     52 #define SMOOTH_FONT