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

S6D02A1_Defines.h (2022B)

      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  128
      4 #define TFT_HEIGHT 160
      5 
      6 
      7 // Color definitions for backwards compatibility with old sketches
      8 // use colour definitions like TFT_BLACK to make sketches more portable
      9 #define S6D02A1_BLACK       0x0000      /*   0,   0,   0 */
     10 #define S6D02A1_NAVY        0x000F      /*   0,   0, 128 */
     11 #define S6D02A1_DARKGREEN   0x03E0      /*   0, 128,   0 */
     12 #define S6D02A1_DARKCYAN    0x03EF      /*   0, 128, 128 */
     13 #define S6D02A1_MAROON      0x7800      /* 128,   0,   0 */
     14 #define S6D02A1_PURPLE      0x780F      /* 128,   0, 128 */
     15 #define S6D02A1_OLIVE       0x7BE0      /* 128, 128,   0 */
     16 #define S6D02A1_LIGHTGREY   0xC618      /* 192, 192, 192 */
     17 #define S6D02A1_DARKGREY    0x7BEF      /* 128, 128, 128 */
     18 #define S6D02A1_BLUE        0x001F      /*   0,   0, 255 */
     19 #define S6D02A1_GREEN       0x07E0      /*   0, 255,   0 */
     20 #define S6D02A1_CYAN        0x07FF      /*   0, 255, 255 */
     21 #define S6D02A1_RED         0xF800      /* 255,   0,   0 */
     22 #define S6D02A1_MAGENTA     0xF81F      /* 255,   0, 255 */
     23 #define S6D02A1_YELLOW      0xFFE0      /* 255, 255,   0 */
     24 #define S6D02A1_WHITE       0xFFFF      /* 255, 255, 255 */
     25 #define S6D02A1_ORANGE      0xFD20      /* 255, 165,   0 */
     26 #define S6D02A1_GREENYELLOW 0xAFE5      /* 173, 255,  47 */
     27 #define S6D02A1_PINK        0xF81F
     28 
     29 
     30 // Delay between some initialisation commands
     31 #define TFT_INIT_DELAY 0x80
     32 
     33 
     34 // Generic commands used by TFT_eSPI.cpp
     35 #define TFT_NOP     0x00
     36 #define TFT_SWRST   0x01
     37 
     38 #define TFT_CASET   0x2A
     39 #define TFT_PASET   0x2B
     40 #define TFT_RAMWR   0x2C
     41 
     42 #define TFT_RAMRD   0x2E
     43 #define TFT_IDXRD   0x00 //0xDD // ILI9341 only, indexed control register read
     44 
     45 #define TFT_MADCTL  0x36
     46 #define TFT_MAD_MY  0x80
     47 #define TFT_MAD_MX  0x40
     48 #define TFT_MAD_MV  0x20
     49 #define TFT_MAD_ML  0x10
     50 #define TFT_MAD_BGR 0x08
     51 #define TFT_MAD_MH  0x04
     52 #define TFT_MAD_RGB 0x00
     53 
     54 #define TFT_INVOFF  0x20
     55 #define TFT_INVON   0x21