acidportal

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

RM68120_Defines.h (1244B)

      1 // Change the width and height if required (defined in portrait mode)
      2 // or use the constructor to over-ride defaults
      3 // RM68120_DRIVER
      4 
      5 #define TFT_WIDTH  480
      6 #define TFT_HEIGHT 800
      7 
      8 //Set driver type common to all TBD initialisation options
      9 #ifndef RM68120_DRIVER
     10   #define RM68120_DRIVER
     11 #endif
     12 
     13 // Delay between some initialisation commands
     14 #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked
     15 
     16 // Generic commands used by TFT_eSPI.cpp
     17 #define TFT_NOP      0x0000
     18 #define TFT_SWRST    0x0100
     19 
     20 #define TFT_CASET    0x2A00
     21 #define TFT_PASET    0x2B00
     22 #define TFT_RAMWR    0x2C00
     23 
     24 #define TFT_RAMRD    0x2E00
     25 #define TFT_IDXRD    0xDD00 // ILI9341 only, indexed control register read
     26 
     27 #define TFT_MADCTL   0x3600
     28 #define TFT_MAD_MY     0x80
     29 #define TFT_MAD_MX     0x40
     30 #define TFT_MAD_MV     0x20
     31 #define TFT_MAD_ML     0x10
     32 #define TFT_MAD_BGR    0x08
     33 #define TFT_MAD_RGB    0x00
     34 #define TFT_MAD_MH     0x04
     35 #define TFT_MAD_H_FLIP 0x02
     36 #define TFT_MAD_V_FLIP 0x01
     37 
     38 #ifdef TFT_RGB_ORDER
     39   #if (TFT_RGB_ORDER == 1)
     40     #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB
     41   #else
     42     #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR
     43   #endif
     44 #else
     45   #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB
     46 #endif
     47 
     48 #define TFT_INVOFF  0x2000
     49 #define TFT_INVON   0x2100