⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 epower_lcd.h

📁 在TI的TMSF2812平台上
💻 H
字号:
//###########################################################################
//
// FILE:   Epower_LCD.h
//
// TITLE:  LCD Definitions.
//
//###########################################################################
//
//  Ver | dd mmm yyyy | Who  | Description of changes
// =====|=============|======|===============================================
//  1.00| 22 JUN 2005 | X.KP | Define the LCD pins and some 
//      |             |      | function the Epower_LCD.c used.
//###########################################################################

#ifndef _Epower_LCD
#define _Epower_LCD

#define LCDE   GpioDataRegs.GPBDAT.bit.GPIOB8           // 设置LCD使能管脚
#define LCDC_D GpioDataRegs.GPBDAT.bit.GPIOB9           // 设置LCD指令\数据管脚
#define LCDRST GpioDataRegs.GPBDAT.bit.GPIOB10          // 设置LCD复位管脚
#define LCDR_W GpioDataRegs.GPDDAT.bit.GPIOD6           // 设置LCD读\写管脚
#define LCDLED GpioDataRegs.GPDDAT.bit.GPIOD5           // 设置LCD背光管脚
#define LCDCS1 GpioDataRegs.GPADAT.bit.GPIOA6          // 设置LCD数据线
#define LCDCS2 GpioDataRegs.GPADAT.bit.GPIOA7          // 设置LCD数据线

void ConfigLCD(void);                               // 设置LCD管脚
void LCDOut(Uint16 data);                           // LCD数据线输出数据
void LCDIns_L(Uint16 ins);                          // 写指令子程序(左)
void LCDIns_R(Uint16 ins);                          // 写指令子程序(右)
void LCDData_L(Uint16 data);                        // 写数据子程序(左)
void LCDData_R(Uint16 data);                        // 写数据子程序(右)
void LCDOnpen(void);								// LCD显示RAM中的内容指令
void LCDClose(void);								// LCD关闭显示指令
void LCDRow_L(Uint16 data);							// 显示起始行设置指令(左)
void LCDRow_R(Uint16 data);							// 显示起始行设置指令(右)
void LCDPage_L(Uint16 data);						// 页设置指令(左)
void LCDPage_R(Uint16 data);						// 页设置指令(右)
void LCDLine_L(Uint16 data);						// 列地址设置指令(左)
void LCDLine_R(Uint16 data);						// 列地址设置指令(右)
void InitLCD(void);                                 // LCD初始化程序
void LCDDisplay(void);                              // 对LCD全屏做一次写操作
 
#endif      /* #ifndef _Epower_LCD */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -