📄 lcd_hw.h
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2001
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* lcd_hw.h
*
* Project:
* --------
* Maui_Software
*
* Description:
* ------------
* This file is intends for LCD driver.
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef _LCD_HW_H
#define _LCD_HW_H
/* Solomon SSD1779 *********************************************************/
/* 128x128(65K), Parallel i/o, COG Type */
/***************************************************************************/
#define LCD_OSC_OFF_SSD1779 0xD3
#define LCD_OSC_ON_SSD1779 0xD1
/* ENTER/EXIT Sleep Mode */
#define LCD_EXIT_SLEEP_SSD1779 0x94
#define LCD_ENTER_SLEEP_SSD1779 0x95
#define LCD_DISPLAY_OFF_SSD1779 0xAE
#define LCD_DISPLAY_ON_SSD1779 0xAF
#define LCD_ENTER_PARTIAL_DISPLAY_SSD1789 0xA8
#define LCD_EXIT_PARTIAL_DISPLAY_SSD1789 0xA9
/* Set Power Control Register */
#define LCD_POW_CTRL_SSD1779 0x20
/* Select LCD Bias */
#define LCD_BIAS_CTRL_SSD1779 0xFB
/* Select PWM/FRC */
#define LCD_PWM_FRC_SSD1779 0xF7
/* Set Display Control */
#define LCD_DUTY_CTRL_SSD1779 0xCA
/* Set Contrast Level */
#define LCD_CONTRAST_CTRL_SSD1779 0x81
/* Set Normal/Inverse Display */
#define LCD_NORMAL_DISPLAY_SSD1779 0xA6
#define LCD_INVERSE_DISPLAY_SSD1779 0xA7
/* Set COM/Data Output Scan Direction */
#define LCD_COM_OUTPUT_SCAN_SSD1779 0xBB
#define LCD_DATA_OUTPUT_SCAN_SSD1779 0xBC
/* Set X/Y Address */
#define LCD_PAGE_ADDRESS_SET_SSD1779 0x75
#define LCD_COLUMN_ADDRESS_SET_SSD1779 0x15
/* Set N-line Inversion Register */
#define LCD_NLINE_INVERSION_CTRL_SSD1779 0xF2
/* Select Offset Volume Register */ /* Temperature Compensation */
#define LCD_TEMP_COMPENSATION_CTRL_SSD1779 0xF4
#define LCD_WRITE_DATA_SSD1779 0x5C
/* Ultra Chip UC1602 *******************************************************/
/* 96x64 (Mono), Serial i/o, COG Type */
/***************************************************************************/
#define LCD_DISPLAY_ON_UC1602 0xAF
#define LCD_DISPLAY_OFF_UC1602 0xAE
#define LCD_SLineData_UC1602 0x40
#define LCD_PageData_UC1602 0xB0
#define LCD_ColHiData_UC1602 0x10
#define LCD_ColLoData_UC1602 0x00
#define LCD_STAT_MASK_UC1602 0xF0
#define LCD_ADC_NORMAL_UC1602 0xA0
#define LCD_ADC_REVERSE_UC1602 0xA1
#define LCD_REVDIS_UC1602 0xA7
#define LCD_NORMDIS_UC1602 0xA6
#define LCD_ENTIREDIS_ON_UC1602 0xA5
#define LCD_ENTIREDIS_OFF_UC1602 0xA4
#define LCD_BIAS_SELECT_UC1602 0xA2
#define LCD_RModifyW_UC1602 0xE0
#define LCD_RModifyW_END_UC1602 0xEE
#define LCD_RESET_UC1602 0xE2
#define LCD_COM_NORMAL_UC1602 0xC0
#define LCD_COM_REVERSE_UC1602 0xC8
#define LCD_PWRData_UC1602 0x28
#define LCD_RARBData_UC1602 0x20
#define LCD_BRIGHT_SET_UC1602 0x81
#define LCD_CURSOR_SETON_UC1602 0xAD
#define LCD_CURSOR_SETOFF_UC1602 0xAC
#define LCD_CURSOR_BLINK_UC1602 0x02
#define LCD_CURSOR_ALLON_UC1602 0x03
#define LCD_NOP_UC1602 0xE3
#define LCD_TESTCMD_UC1602 0xF1
#define LCD_TESTRESET_UC1602 0xF0
#endif /*_LCD_HW_H*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -