lcdconf_1611_m4_m240x160.h
来自「ucgui V3.98 是目前网络上相对较新的ucgui高版本源码啦。有兴趣的可」· C头文件 代码 · 共 69 行
H
69 行
/*
*********************************************************************************************************
* uC/GUI V3.98
* Universal graphic software for embedded applications
*
* (c) Copyright 2002, Micrium Inc., Weston, FL
* (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
* 礐/GUI is protected by international copyright laws. Knowledge of the
* source code may not be used to write a similar product. This file may
* only be used in accordance with a license and should not be redistributed
* in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File : LCDConf_1611_M4_M240x160.H
Purpose : Sample configuration file
----------------------------------------------------------------------
*/
#ifndef LCDCONF_H
#define LCDCONF_H
/*********************************************************************
*
* General configuration of LCD
*
**********************************************************************
*/
#define LCD_CONTROLLER 1800
#define LCD_XSIZE (240) /* X-resolution of LCD, Logical coor. */
#define LCD_YSIZE (160) /* Y-resolution of LCD, Logical coor. */
#define LCD_BITSPERPIXEL (4)
char LCD_X_Read00 (void);
char LCD_X_Read01 (void);
void LCD_X_Write00 (char c);
void LCD_X_Write01 (char c);
void LCD_X_WriteM01(char * pData, int NumBytes);
#define LCD_READ_A1(Byte) Byte = LCD_X_Read01()
#define LCD_READ_A0() Byte = LCD_X_Read00()
#define LCD_WRITE_A1(Byte) LCD_X_Write01(Byte)
#define LCD_WRITE_A0(Byte) LCD_X_Write00(Byte)
#define LCD_WRITEM_A1(pData, NumBytes) LCD_X_WriteM01(pData, NumBytes)
/*********************************************************************
*
* Initialisation macro
*
**********************************************************************
*/
#define LCD_INIT_CONTROLLER() \
LCD_X_Init(); \
LCD_WRITE_A0(0xeb); /* SET LCD BIAS RATIO: 12 */ \
LCD_WRITE_A0(0x81); /* SET VBIAS POTENTIOMETER AND GAIN */ \
LCD_WRITE_A0(0x0c); \
LCD_WRITE_A0(0xa7); /* SET INVERSE DISPLAY */ \
LCD_WRITE_A0(0xd6); /* SET GRAY SCALE MODE */ \
LCD_WRITE_A0(0xc2); /* SET LCD MAPPING CONTROL */ \
LCD_WRITE_A0(0xa3); /* SET LINE RATE */ \
LCD_WRITE_A0(0xaf); /* SET DISPLAY ENABLE */ \
#endif /* LCDCONF_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?