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 |
ILI9486_Defines.h (2269B)
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 // For Raspberry Pi ILI9486 only with a modified board to add a write strobe: 7 #if defined (TFT_WR) && defined (RPI_ILI9486_DRIVER) 8 #define RPI_WRITE_STROBE 9 #endif 10 11 // Color definitions for backwards compatibility with old sketches 12 // use colour definitions like TFT_BLACK to make sketches more portable 13 #define ILI9486_BLACK 0x0000 /* 0, 0, 0 */ 14 #define ILI9486_NAVY 0x000F /* 0, 0, 128 */ 15 #define ILI9486_DARKGREEN 0x03E0 /* 0, 128, 0 */ 16 #define ILI9486_DARKCYAN 0x03EF /* 0, 128, 128 */ 17 #define ILI9486_MAROON 0x7800 /* 128, 0, 0 */ 18 #define ILI9486_PURPLE 0x780F /* 128, 0, 128 */ 19 #define ILI9486_OLIVE 0x7BE0 /* 128, 128, 0 */ 20 #define ILI9486_LIGHTGREY 0xC618 /* 192, 192, 192 */ 21 #define ILI9486_DARKGREY 0x7BEF /* 128, 128, 128 */ 22 #define ILI9486_BLUE 0x001F /* 0, 0, 255 */ 23 #define ILI9486_GREEN 0x07E0 /* 0, 255, 0 */ 24 #define ILI9486_CYAN 0x07FF /* 0, 255, 255 */ 25 #define ILI9486_RED 0xF800 /* 255, 0, 0 */ 26 #define ILI9486_MAGENTA 0xF81F /* 255, 0, 255 */ 27 #define ILI9486_YELLOW 0xFFE0 /* 255, 255, 0 */ 28 #define ILI9486_WHITE 0xFFFF /* 255, 255, 255 */ 29 #define ILI9486_ORANGE 0xFD20 /* 255, 165, 0 */ 30 #define ILI9486_GREENYELLOW 0xAFE5 /* 173, 255, 47 */ 31 #define ILI9486_PINK 0xF81F 32 33 34 // Delay between some initialisation commands 35 #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 36 37 38 // Generic commands used by TFT_eSPI.cpp 39 #define TFT_NOP 0x00 40 #define TFT_SWRST 0x01 41 42 #define TFT_CASET 0x2A 43 #define TFT_PASET 0x2B 44 #define TFT_RAMWR 0x2C 45 46 #define TFT_RAMRD 0x2E 47 #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 48 49 #define TFT_MADCTL 0x36 50 #define TFT_MAD_MY 0x80 51 #define TFT_MAD_MX 0x40 52 #define TFT_MAD_MV 0x20 53 #define TFT_MAD_ML 0x10 54 #define TFT_MAD_BGR 0x08 55 #define TFT_MAD_MH 0x04 56 #define TFT_MAD_SS 0x02 57 #define TFT_MAD_GS 0x01 58 #define TFT_MAD_RGB 0x00 59 60 #define TFT_INVOFF 0x20 61 #define TFT_INVON 0x21