acidportal- 😈 Worlds smallest Evil Portal on a LilyGo T-QT |
git clone git://git.acid.vegas/acidportal.git |
Log | Files | Refs | Archive | README | LICENSE |
ILI9225_Defines.h (3783B)
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 176 4 #define TFT_HEIGHT 220 5 6 // Generic commands used by TFT_eSPI.cpp 7 #define TFT_NOP 0x00 8 #define TFT_SWRST 0x28 9 10 #define TFT_CASET 0 11 #define TFT_PASET 0 12 13 #define TFT_CASET1 ILI9225_HORIZONTAL_WINDOW_ADDR2 14 #define TFT_CASET2 ILI9225_HORIZONTAL_WINDOW_ADDR1 15 16 #define TFT_PASET1 ILI9225_VERTICAL_WINDOW_ADDR2 17 #define TFT_PASET2 ILI9225_VERTICAL_WINDOW_ADDR1 18 19 #define TFT_RAM_ADDR1 ILI9225_RAM_ADDR_SET1 20 #define TFT_RAM_ADDR2 ILI9225_RAM_ADDR_SET2 21 22 #define TFT_RAMWR ILI9225_GRAM_DATA_REG 23 24 #define TFT_MAD_BGR 0x10 25 #define TFT_MAD_RGB 0x00 26 27 #ifdef TFT_RGB_ORDER 28 #if (TFT_RGB_ORDER == 1) 29 #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 30 #else 31 #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 32 #endif 33 #else 34 #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 35 #endif 36 37 // Not used 38 #define TFT_INVOFF 0x00 39 #define TFT_INVON 0x00 40 #define TFT_RAMRD 0x00 41 #define TFT_IDXRD 0x00 42 43 /* ILI9225 Registers */ 44 #define ILI9225_DRIVER_OUTPUT_CTRL 0x01 // Driver Output Control 45 #define ILI9225_LCD_AC_DRIVING_CTRL 0x02 // LCD AC Driving Control 46 #define ILI9225_ENTRY_MODE 0x03 // Entry Mode 47 #define ILI9225_DISP_CTRL1 0x07 // Display Control 1 48 #define ILI9225_BLANK_PERIOD_CTRL1 0x08 // Blank Period Control 49 #define ILI9225_FRAME_CYCLE_CTRL 0x0B // Frame Cycle Control 50 #define ILI9225_INTERFACE_CTRL 0x0C // Interface Control 51 #define ILI9225_OSC_CTRL 0x0F // Osc Control 52 #define ILI9225_POWER_CTRL1 0x10 // Power Control 1 53 #define ILI9225_POWER_CTRL2 0x11 // Power Control 2 54 #define ILI9225_POWER_CTRL3 0x12 // Power Control 3 55 #define ILI9225_POWER_CTRL4 0x13 // Power Control 4 56 #define ILI9225_POWER_CTRL5 0x14 // Power Control 5 57 #define ILI9225_VCI_RECYCLING 0x15 // VCI Recycling 58 #define ILI9225_RAM_ADDR_SET1 0x20 // Horizontal GRAM Address Set 59 #define ILI9225_RAM_ADDR_SET2 0x21 // Vertical GRAM Address Set 60 #define ILI9225_GRAM_DATA_REG 0x22 // GRAM Data Register 61 #define ILI9225_GATE_SCAN_CTRL 0x30 // Gate Scan Control Register 62 #define ILI9225_VERTICAL_SCROLL_CTRL1 0x31 // Vertical Scroll Control 1 Register 63 #define ILI9225_VERTICAL_SCROLL_CTRL2 0x32 // Vertical Scroll Control 2 Register 64 #define ILI9225_VERTICAL_SCROLL_CTRL3 0x33 // Vertical Scroll Control 3 Register 65 #define ILI9225_PARTIAL_DRIVING_POS1 0x34 // Partial Driving Position 1 Register 66 #define ILI9225_PARTIAL_DRIVING_POS2 0x35 // Partial Driving Position 2 Register 67 #define ILI9225_HORIZONTAL_WINDOW_ADDR1 0x36 // Horizontal Address Start Position 68 #define ILI9225_HORIZONTAL_WINDOW_ADDR2 0x37 // Horizontal Address End Position 69 #define ILI9225_VERTICAL_WINDOW_ADDR1 0x38 // Vertical Address Start Position 70 #define ILI9225_VERTICAL_WINDOW_ADDR2 0x39 // Vertical Address End Position 71 #define ILI9225_GAMMA_CTRL1 0x50 // Gamma Control 1 72 #define ILI9225_GAMMA_CTRL2 0x51 // Gamma Control 2 73 #define ILI9225_GAMMA_CTRL3 0x52 // Gamma Control 3 74 #define ILI9225_GAMMA_CTRL4 0x53 // Gamma Control 4 75 #define ILI9225_GAMMA_CTRL5 0x54 // Gamma Control 5 76 #define ILI9225_GAMMA_CTRL6 0x55 // Gamma Control 6 77 #define ILI9225_GAMMA_CTRL7 0x56 // Gamma Control 7 78 #define ILI9225_GAMMA_CTRL8 0x57 // Gamma Control 8 79 #define ILI9225_GAMMA_CTRL9 0x58 // Gamma Control 9 80 #define ILI9225_GAMMA_CTRL10 0x59 // Gamma Control 10 81 82 // Delay between some initialisation commands 83 #define TFT_INIT_DELAY 0x00 // Not used unless commandlist invoked 84