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

📄 lcdlib.h

📁 西铁成的320*240单色G3244液晶屏在44b0下的驱动及测试程序,适合大部分44b0开发板
💻 H
字号:
#ifndef __LCDLIB_H__
#define __LCDLIB_H__

#include "option.h"

void Lcd_Init(int depth);
void Lcd_MoveViewPort(int vx,int vy,int depth);

#define MODE_MONO 	(1)
#define MODE_G4	  	(4)
#define MODE_G16  	(16)
#define MODE_COLOR 	(256)

//#if (LCD_TYPE==MLCD_320_240)
	#define SCR_XSIZE 	(640)  
	#define SCR_YSIZE 	(480)
	
	#define LCD_XSIZE 	(320)
	#define LCD_YSIZE 	(240)
//#elif (LCD_TYPE==MLCD_240_320)
//	#define SCR_XSIZE 	(480)  
//	#define SCR_YSIZE 	(640)
	
//	#define LCD_XSIZE 	(240)
//	#define LCD_YSIZE 	(320)
//#elif (LCD_TYPE==CLCD_320_240)
	#define SCR_XSIZE 	(640)  
	#define SCR_YSIZE 	(480)
	
	#define LCD_XSIZE 	(320)
	#define LCD_YSIZE 	(240)
//#elif (LCD_TYPE==CLCD_240_320)
//	#define SCR_XSIZE 	(480)  
//	#define SCR_YSIZE 	(640)
	
//	#define LCD_XSIZE 	(240)
//	#define LCD_YSIZE 	(320)
//#endif


extern unsigned int (*frameBuffer1)[SCR_XSIZE/32];
extern unsigned int (*frameBuffer4)[SCR_XSIZE/16];
extern unsigned int (*frameBuffer16)[SCR_XSIZE/8];
extern unsigned int (*frameBuffer256)[SCR_XSIZE/4];

void Lcd_Init(int depth);
void Lcd_MoveViewPort(int vx,int vy,int depth);

void Lcd_DispON(void);
void Lcd_DispOFF(void);
void Lcd_Display(void);
void Lcd_PowerReset(void);
void Lcd_PowerUp(void);

#endif /*__LCDLIB_H__*/

⌨️ 快捷键说明

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