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