📄 sed1335.h
字号:
//*****************************************************************************
//
// sed1335.h - Command defines for the SED1335 LCD controller.
//
// Copyright (c) 2006-2007 Luminary Micro, Inc. All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws. All rights are reserved. Any use in violation
// of the foregoing restrictions may subject the user to criminal sanctions
// under applicable laws, as well as to civil liability for the breach of the
// terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 220 of sw01246.
//
//*****************************************************************************
#ifndef __SED1335_H__
#define __SED1335_H__
//*****************************************************************************
//
//! \page ui_sed1335_intro Introduction
//!
//! The LCD panel has a SED1335 (or compatible) display controller to drive the
//! panel. This controller accepts commands and data over a parallel data bus,
//! stores display data in an external SRAM (which also resides on the LCD
//! panel), and provides all the control signals to the LCD panel itself.
//!
//! The commands that can be sent to the SED1335 are provided by the
//! definitions here; for full details of the individual commands (and the
//! associated data), please consult the SED1335 data sheet.
//!
//! The command definitions for the SED1335 controller are contained in
//! <tt>ui_micro/sed1335.h</tt>.
//
//*****************************************************************************
//*****************************************************************************
//
//! \defgroup ui_sed1335_api Definitions
//! @{
//
//*****************************************************************************
//*****************************************************************************
//
//! This command initializes the LCD controller, sets the window sizes, and
//! selects the LCD interface format. Eight parameters follow this command,
//! except when cancelling sleep mode when none are supplied.
//
//*****************************************************************************
#define CMD_SYSTEM_SET 0x40
//*****************************************************************************
//
//! This command initiates a write sequence from the processor to display
//! memory. Any number of parameter bytes may follow the command; each is
//! stored into display memory at the current cursor position, after which the
//! cursor position is incremented as previously defined.
//
//*****************************************************************************
#define CMD_MWRITE 0x42
//*****************************************************************************
//
//! This command initiates a read sequence from the display memory to the
//! processor. Any number of data bytes may be read following the command;
//! each is supplied from the display memory at the current cursor position,
//! after which the cursor position is incremented as previous defined.
//
//*****************************************************************************
#define CMD_MREAD 0x43
//*****************************************************************************
//
//! This command sets the scroll start address and the number of lines per
//! scroll block. Up to ten parameter bytes may follow; only those actually
//! required by the display setup must be provided.
//
//*****************************************************************************
#define CMD_SCROLL 0x44
//*****************************************************************************
//
//! This command sets the address of the cursor (which in this case means the
//! location in memory where processor reads/writes occur). A pair of
//! parameter bytes follow the command.
//
//*****************************************************************************
#define CMD_CSRW 0x46
//*****************************************************************************
//
//! This command reads the address of the cursor (which in this case means the
//! location in memory where processor reads/writes occur).
//
//*****************************************************************************
#define CMD_CSRR 0x47
//*****************************************************************************
//
//! This command sets the direction of automatic cursor increment to the right
//! (cursor in this case means the location in memory where processor
//! reads/writes occur). This command takes no parameters.
//
//*****************************************************************************
#define CMD_CSR_RIGHT 0x4c
//*****************************************************************************
//
//! This command sets the direction of automatic cursor increment to the left
//! (cursor in this case means the location in memory where processor
//! reads/writes occur). This command takes no parameters.
//
//*****************************************************************************
#define CMD_CSR_LEFT 0x4d
//*****************************************************************************
//
//! This command sets the direction of automatic cursor increment to up (cursor
//! in this case means the location in memory where processor reads/writes
//! occur). This command takes no parameters.
//
//*****************************************************************************
#define CMD_CSR_UP 0x4e
//*****************************************************************************
//
//! This command sets the direction of automatic cursor increment to down
//! (cursor in this case means the location in memory where processor
//! reads/writes occur). This command takes no parameters.
//
//*****************************************************************************
#define CMD_CSR_DOWN 0x4f
//*****************************************************************************
//
//! This command places the LCD controller in standby mode. This command takes
//! no parameters. The #CMD_SYSTEM_SET command is used to exit standby mode.
//
//*****************************************************************************
#define CMD_SLEEP_IN 0x53
//*****************************************************************************
//
//! This command turns the whole display off. A single parameter byte follows
//! the command.
//
//*****************************************************************************
#define CMD_DISPLAY_OFF 0x58
//*****************************************************************************
//
//! This command turns the whole display on. A single parameter byte follows
//! the command.
//
//*****************************************************************************
#define CMD_DISPLAY_ON 0x59
//*****************************************************************************
//
//! This command scrolls the screen horizontally by pixels. A single parameter
//! byte follows the command.
//
//*****************************************************************************
#define CMD_HDOT_SCR 0x5a
//*****************************************************************************
//
//! This command selects the layer screen composition and screen text/graphics
//! mode. A single parameter byte follows the command.
//
//*****************************************************************************
#define CMD_OVLAY 0x5b
//*****************************************************************************
//
//! This command specifies the CG RAM start address. A pair of parameters
//! bytes follow the command.
//
//*****************************************************************************
#define CMD_CGRAM_ADR 0x5c
//*****************************************************************************
//
//! This command sets the cursor size and shape. A pair of parameter bytes
//! follow the command.
//
//*****************************************************************************
#define CMD_CSRFORM 0x5d
//*****************************************************************************
//
// Close the Doxygen group.
//! @}
//
//*****************************************************************************
#endif // __SED1335_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -