1 //*****************************************************************************
\r
8 // +----+ Copyright (c) 2009 Code Red Technologies Ltd.
\r
10 // lcd_commands.h contains defines mapping onto the commands accepted by the
\r
11 // Sitronix ST7637 LCD Controller/driver used on the RDB1768 development board.//
\r
13 // Software License Agreement
\r
15 // The software is owned by Code Red Technologies and/or its suppliers, and is
\r
16 // protected under applicable copyright laws. All rights are reserved. Any
\r
17 // use in violation of the foregoing restrictions may subject the user to criminal
\r
18 // sanctions under applicable laws, as well as to civil liability for the breach
\r
19 // of the terms and conditions of this license.
\r
21 // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
\r
22 // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
\r
23 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
\r
24 // USE OF THIS SOFTWARE FOR COMMERCIAL DEVELOPMENT AND/OR EDUCATION IS SUBJECT
\r
25 // TO A CURRENT END USER LICENSE AGREEMENT (COMMERCIAL OR EDUCATIONAL) WITH
\r
26 // CODE RED TECHNOLOGIES LTD.
\r
28 #ifndef LCD_COMMANDS_H_
\r
29 #define LCD_COMMANDS_H_
\r
32 #define DD_SWRESET 0x01 //SW reset the display
\r
33 #define DD_SLPIN 0x10 //Sleep in and booster off
\r
34 #define DD_SLPOUT 0x11 //Sleep out and booster on
\r
35 #define DD_NORON 0x13 //Partial mode off (Normal mode on)
\r
36 #define DD_DISPOFF 0x28 //Display Off
\r
37 #define DD_DISPON 0x29 //Display On
\r
38 #define DD_CASET 0x2a //Column address set
\r
39 #define DD_RASET 0x2b //Row address set
\r
40 #define DD_RAMWR 0x2c //Memory write
\r
41 #define DD_MADCTR 0x36 //Memory Data Access Control
\r
42 #define DD_COLORMOD 0x3a //Set the color mode for the display
\r
43 #define DD_ColScanDir 0xb7 //Set the column scanning direction
\r
44 #define DD_VopSet 0xc0 //LCD supply voltage set
\r
45 #define DD_BiasSel 0xc3 //Bias selection
\r
46 #define DD_BstMbpXSel 0xc4 //Booster setting
\r
47 #define DD_AUTOLOADSET 0xd7 //Control auto load of ROM data
\r
48 #define DD_EPCTIN 0xe0 //OTP control RD/WR
\r
49 #define DD_EPREAD 0xe3 //OTP read
\r
50 #define DD_EPCTOUT 0xe1 //OTP control cancel
\r
53 #endif /*LCD_COMMANDS_H_*/
\r