acidportal

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

GC9A01_Defines.h (859B)

      1 // Change the width and height if required (defined in portrait mode)
      2 // or use the constructor to over-ride defaults
      3 #ifndef TFT_WIDTH
      4   #define TFT_WIDTH  240
      5 #endif
      6 #ifndef TFT_HEIGHT
      7   #define TFT_HEIGHT 240
      8 #endif
      9 
     10 // Delay between some initialisation commands
     11 #define TFT_INIT_DELAY 0x80
     12 
     13 // Generic commands used by TFT_eSPI.cpp
     14 #define TFT_NOP     0x00
     15 #define TFT_SWRST   0x01
     16 
     17 #define TFT_CASET   0x2A
     18 #define TFT_PASET   0x2B
     19 #define TFT_RAMWR   0x2C
     20 
     21 #define TFT_RAMRD   0x2E
     22 #define TFT_IDXRD   0x00 //0xDD // ILI9341 only, indexed control register read
     23 
     24 #define TFT_MADCTL  0x36
     25 #define TFT_MAD_MY  0x80
     26 #define TFT_MAD_MX  0x40
     27 #define TFT_MAD_MV  0x20
     28 #define TFT_MAD_ML  0x10
     29 #define TFT_MAD_BGR 0x08
     30 #define TFT_MAD_MH  0x04
     31 #define TFT_MAD_RGB 0x00
     32 #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB
     33 
     34 #define TFT_INVOFF  0x20
     35 #define TFT_INVON   0x21