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

ILI9481_Defines.h (952B)

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