Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:22:44

0001 /* ---------------------------------------------------------------------------- */
0002 /*                  Atmel Microcontroller Software Support                      */
0003 /*                       SAM Software Package License                           */
0004 /* ---------------------------------------------------------------------------- */
0005 /* Copyright (c) 2015, Atmel Corporation                                        */
0006 /*                                                                              */
0007 /* All rights reserved.                                                         */
0008 /*                                                                              */
0009 /* Redistribution and use in source and binary forms, with or without           */
0010 /* modification, are permitted provided that the following condition is met:    */
0011 /*                                                                              */
0012 /* - Redistributions of source code must retain the above copyright notice,     */
0013 /* this list of conditions and the disclaimer below.                            */
0014 /*                                                                              */
0015 /* Atmel's name may not be used to endorse or promote products derived from     */
0016 /* this software without specific prior written permission.                     */
0017 /*                                                                              */
0018 /* DISCLAIMER:  THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR   */
0019 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
0020 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE   */
0021 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,      */
0022 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
0023 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,  */
0024 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF    */
0025 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING         */
0026 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
0027 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                           */
0028 /* ---------------------------------------------------------------------------- */
0029 
0030 #ifndef ILI9488_REG_H_INCLUDED
0031 #define ILI9488_REG_H_INCLUDED
0032 
0033 /* Level 1 Commands (from the display Datasheet) */
0034 #define ILI9488_CMD_NOP                             0x00
0035 #define ILI9488_CMD_SOFTWARE_RESET                  0x01
0036 #define ILI9488_CMD_READ_DISP_ID                    0x04
0037 #define ILI9488_CMD_READ_ERROR_DSI                  0x05
0038 #define ILI9488_CMD_READ_DISP_STATUS                0x09
0039 #define ILI9488_CMD_READ_DISP_POWER_MODE            0x0A
0040 #define ILI9488_CMD_READ_DISP_MADCTRL               0x0B
0041 #define ILI9488_CMD_READ_DISP_PIXEL_FORMAT          0x0C
0042 #define ILI9488_CMD_READ_DISP_IMAGE_MODE            0x0D
0043 #define ILI9488_CMD_READ_DISP_SIGNAL_MODE           0x0E
0044 #define ILI9488_CMD_READ_DISP_SELF_DIAGNOSTIC       0x0F
0045 #define ILI9488_CMD_ENTER_SLEEP_MODE                0x10
0046 #define ILI9488_CMD_SLEEP_OUT                       0x11
0047 #define ILI9488_CMD_PARTIAL_MODE_ON                 0x12
0048 #define ILI9488_CMD_NORMAL_DISP_MODE_ON             0x13
0049 #define ILI9488_CMD_DISP_INVERSION_OFF              0x20
0050 #define ILI9488_CMD_DISP_INVERSION_ON               0x21
0051 #define ILI9488_CMD_PIXEL_OFF                       0x22
0052 #define ILI9488_CMD_PIXEL_ON                        0x23
0053 #define ILI9488_CMD_DISPLAY_OFF                     0x28
0054 #define ILI9488_CMD_DISPLAY_ON                      0x29
0055 #define ILI9488_CMD_COLUMN_ADDRESS_SET              0x2A
0056 #define ILI9488_CMD_PAGE_ADDRESS_SET                0x2B
0057 #define ILI9488_CMD_MEMORY_WRITE                    0x2C
0058 #define ILI9488_CMD_MEMORY_READ                     0x2E
0059 #define ILI9488_CMD_PARTIAL_AREA                    0x30
0060 #define ILI9488_CMD_VERT_SCROLL_DEFINITION          0x33
0061 #define ILI9488_CMD_TEARING_EFFECT_LINE_OFF         0x34
0062 #define ILI9488_CMD_TEARING_EFFECT_LINE_ON          0x35
0063 #define ILI9488_CMD_MEMORY_ACCESS_CONTROL           0x36
0064 #define ILI9488_CMD_VERT_SCROLL_START_ADDRESS       0x37
0065 #define ILI9488_CMD_IDLE_MODE_OFF                   0x38
0066 #define ILI9488_CMD_IDLE_MODE_ON                    0x39
0067 #define ILI9488_CMD_COLMOD_PIXEL_FORMAT_SET         0x3A
0068 #define ILI9488_CMD_WRITE_MEMORY_CONTINUE           0x3C
0069 #define ILI9488_CMD_READ_MEMORY_CONTINUE            0x3E
0070 #define ILI9488_CMD_SET_TEAR_SCANLINE               0x44
0071 #define ILI9488_CMD_GET_SCANLINE                    0x45
0072 #define ILI9488_CMD_WRITE_DISPLAY_BRIGHTNESS        0x51
0073 #define ILI9488_CMD_READ_DISPLAY_BRIGHTNESS         0x52
0074 #define ILI9488_CMD_WRITE_CTRL_DISPLAY              0x53
0075 #define ILI9488_CMD_READ_CTRL_DISPLAY               0x54
0076 #define ILI9488_CMD_WRITE_CONTENT_ADAPT_BRIGHTNESS  0x55
0077 #define ILI9488_CMD_READ_CONTENT_ADAPT_BRIGHTNESS   0x56
0078 #define ILI9488_CMD_WRITE_MIN_CAB_LEVEL             0x5E
0079 #define ILI9488_CMD_READ_MIN_CAB_LEVEL              0x5F
0080 #define ILI9488_CMD_READ_ABC_SELF_DIAG_RES          0x68
0081 #define ILI9488_CMD_READ_ID1                        0xDA
0082 #define ILI9488_CMD_READ_ID2                        0xDB
0083 #define ILI9488_CMD_READ_ID3                        0xDC
0084 
0085 /* Level 2 Commands (from the display Datasheet) */
0086 #define ILI9488_CMD_INTERFACE_MODE_CONTROL          0xB0
0087 #define ILI9488_CMD_FRAME_RATE_CONTROL_NORMAL       0xB1
0088 #define ILI9488_CMD_FRAME_RATE_CONTROL_IDLE_8COLOR  0xB2
0089 #define ILI9488_CMD_FRAME_RATE_CONTROL_PARTIAL      0xB3
0090 #define ILI9488_CMD_DISPLAY_INVERSION_CONTROL       0xB4
0091 #define ILI9488_CMD_BLANKING_PORCH_CONTROL          0xB5
0092 #define ILI9488_CMD_DISPLAY_FUNCTION_CONTROL        0xB6
0093 #define ILI9488_CMD_ENTRY_MODE_SET                  0xB7
0094 #define ILI9488_CMD_BACKLIGHT_CONTROL_1             0xB9
0095 #define ILI9488_CMD_BACKLIGHT_CONTROL_2             0xBA
0096 #define ILI9488_CMD_HS_LANES_CONTROL                0xBE
0097 #define ILI9488_CMD_POWER_CONTROL_1                 0xC0
0098 #define ILI9488_CMD_POWER_CONTROL_2                 0xC1
0099 #define ILI9488_CMD_POWER_CONTROL_NORMAL_3          0xC2
0100 #define ILI9488_CMD_POWER_CONTROL_IDEL_4            0xC3
0101 #define ILI9488_CMD_POWER_CONTROL_PARTIAL_5         0xC4
0102 #define ILI9488_CMD_VCOM_CONTROL_1                  0xC5
0103 #define ILI9488_CMD_CABC_CONTROL_1                  0xC6
0104 #define ILI9488_CMD_CABC_CONTROL_2                  0xC8
0105 #define ILI9488_CMD_CABC_CONTROL_3                  0xC9
0106 #define ILI9488_CMD_CABC_CONTROL_4                  0xCA
0107 #define ILI9488_CMD_CABC_CONTROL_5                  0xCB
0108 #define ILI9488_CMD_CABC_CONTROL_6                  0xCC
0109 #define ILI9488_CMD_CABC_CONTROL_7                  0xCD
0110 #define ILI9488_CMD_CABC_CONTROL_8                  0xCE
0111 #define ILI9488_CMD_CABC_CONTROL_9                  0xCF
0112 #define ILI9488_CMD_NVMEM_WRITE                     0xD0
0113 #define ILI9488_CMD_NVMEM_PROTECTION_KEY            0xD1
0114 #define ILI9488_CMD_NVMEM_STATUS_READ               0xD2
0115 #define ILI9488_CMD_READ_ID4                        0xD3
0116 #define ILI9488_CMD_ADJUST_CONTROL_1                0xD7
0117 #define ILI9488_CMD_READ_ID_VERSION                 0xD8
0118 #define ILI9488_CMD_POSITIVE_GAMMA_CORRECTION       0xE0
0119 #define ILI9488_CMD_NEGATIVE_GAMMA_CORRECTION       0xE1
0120 #define ILI9488_CMD_DIGITAL_GAMMA_CONTROL_1         0xE2
0121 #define ILI9488_CMD_DIGITAL_GAMMA_CONTROL_2         0xE3
0122 #define ILI9488_CMD_SET_IMAGE_FUNCTION              0xE9
0123 #define ILI9488_CMD_ADJUST_CONTROL_2                0xF2
0124 #define ILI9488_CMD_ADJUST_CONTROL_3                0xF7
0125 #define ILI9488_CMD_ADJUST_CONTROL_4                0xF8
0126 #define ILI9488_CMD_ADJUST_CONTROL_5                0xF9
0127 #define ILI9488_CMD_SPI_READ_SETTINGS               0xFB
0128 #define ILI9488_CMD_ADJUST_CONTROL_6                0xFC
0129 #define ILI9488_CMD_ADJUST_CONTROL_7                0xFF
0130 
0131 #endif /* ILI9488_REGS_H_INCLUDED */