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 |
SSD1963_Defines.h (1420B)
1 // Change the width and height if required (defined in portrait mode) 2 // or use the constructor to over-ride defaults 3 #if defined (SSD1963_480_DRIVER) 4 #define TFT_WIDTH 272 5 #define TFT_HEIGHT 480 6 #elif defined (SSD1963_800_DRIVER) 7 #define TFT_WIDTH 480 8 #define TFT_HEIGHT 800 9 #elif defined (SSD1963_800ALT_DRIVER) 10 #define TFT_WIDTH 480 11 #define TFT_HEIGHT 800 12 #elif defined (SSD1963_800BD_DRIVER) 13 #define TFT_WIDTH 480 14 #define TFT_HEIGHT 800 15 #endif 16 17 //Set driver type common to all initialisation options 18 #ifndef SSD1963_DRIVER 19 #define SSD1963_DRIVER 20 #endif 21 22 // Delay between some initialisation commands 23 #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 24 25 // Generic commands used by TFT_eSPI.cpp 26 #define TFT_NOP 0x00 27 #define TFT_SWRST 0x01 28 29 #define TFT_CASET 0x2A 30 #define TFT_PASET 0x2B 31 #define TFT_RAMWR 0x2C 32 33 #define TFT_RAMRD 0x2E 34 #define TFT_IDXRD 0xDD // ILI9341 only, indexed control register read 35 36 #define TFT_MADCTL 0x36 37 #define TFT_MAD_MY 0x80 38 #define TFT_MAD_MX 0x40 39 #define TFT_MAD_MV 0x20 40 #define TFT_MAD_ML 0x10 41 #define TFT_MAD_BGR 0x08 42 #define TFT_MAD_MH 0x04 43 #define TFT_MAD_RGB 0x00 44 45 #ifdef TFT_RGB_ORDER 46 #if (TFT_RGB_ORDER == 1) 47 #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 48 #else 49 #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 #endif 51 #else 52 #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 53 #endif 54 55 #define TFT_INVOFF 0x20 56 #define TFT_INVON 0x21