lcdconf_0713_m1_m128x64.h
来自「uCGUI」· C头文件 代码 · 共 46 行
H
46 行
/*************************************************************************************************************
uC/GUI
嵌入式通用图形软件
文 件: LCDConf_0713_M1_M128x64.h
描 述: Sample configuration file
*************************************************************************************************************/
#ifndef LCDCONF_H
#define LCDCONF_H
/*************************************************************************************************************
General configuration of LCD
*************************************************************************************************************/
#define LCD_CONTROLLER (0713)
#define LCD_XSIZE (128) /* X-resolution of LCD, Logical coor. */
#define LCD_YSIZE (64) /* Y-resolution of LCD, Logical coor. */
#define LCD_BITSPERPIXEL (1)
/*************************************************************************************************************
Simple bus configuration
*************************************************************************************************************/
void LCD_X_Write00(char c);
void LCD_X_Write01(char c);
char LCD_X_Read00(void);
char LCD_X_Read01(void);
#define LCD_WRITE_A1(Byte) LCD_X_Write01(Byte)
#define LCD_WRITE_A0(Byte) LCD_X_Write00(Byte)
#define LCD_READ_A1(Byte) Byte = LCD_X_Read01()
#define LCD_READ_A0(Byte) Byte = LCD_X_Read00()
/*************************************************************************************************************
Initialisation macro
*************************************************************************************************************/
#define LCD_INIT_CONTROLLER() \
LCD_WRITE_A0(0xE2); /* Software Reset */ \
LCD_WRITE_A0(0xA1); /* ADC -> 0xa0 = normal, 0xa1 = revers */ \
LCD_WRITE_A0(0xC0); /* SHL -> 0xc0 = normal, 0xc8 = revers */ \
LCD_WRITE_A0(0xA3); /* LCD bias select 1/9 */ \
LCD_WRITE_A0(0x2F); /* Use of all built in units VC = 1, VR = 1, VF = 1 */ \
LCD_WRITE_A0(0x26); /* Regulator resistor select, R1 & R2 */ \
LCD_WRITE_A0(0x81); /* Enter electronic volume mode */ \
LCD_WRITE_A0(0x40); /* Electronic volume: medium */ \
LCD_WRITE_A0(0xAF); /* display on */
#endif /* LCDCONF_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?