rgb565.h

来自「这是T118和T103的通用程序」· C头文件 代码 · 共 68 行

H
68
字号
/**********************************************************************************
* File: RGB565.h
* Description: This file includes initial T10x registers values, Tcon             *
*		        values and ScanMode for panel.                                     *
**********************************************************************************/


//*****Define initial for 8051 sample code. (PANEL.C)*****//
/*
#ifdef _800_480
	#define H_Size                  800
	#define V_Size                  480
	#define DFDIV_40                46
	#define DIDIV                   2
	#define DODIV                   2
	#define DWHSZ                   800
	#define DWVSZ                   480
	#define DWVSST                  0x10
	#define DISP_DFLT_HTOTAL        1299
	#define DISP_DFLT_VTOTAL        524
	#define DISP_DFLT_HSWIDTH       16
	#define DISP_DFLT_VSWIDTH       3
	#define DISP_DFLT_HDENS         233
	#define DISP_DFLT_VDENS         13
	#define LBprfl                  36680
#endif   // _800_480
*/
//*******************************************************//

#ifndef __RGB565_H__
#define __RGB565_H__

/*******************************************************************************
*          T10x Output timing Register Adress and Value for static condition   *
*******************************************************************************/
//====== Output timing Register Adress ===========//
unsigned char code ucaZoomAdrP0_RGB565[29]={
0x70, 0x72, 0x73, 0x74, 0x75, 0x84, 0x85, 0xC8, 0xC9, 
0xB0, 0xB1, 0xB2, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 
0xBA, 0xBB, 0xBC, 0xBE, 0xD8, 0xDA, 0xDC, 0xDD, 0xDE, 
0xDF, 0xE2
};
unsigned char code ucaZoomAdrP1_RGB565[6]={
0xD5, 0xD7, 0xD8, 0xD9, 0xDB, 0xDC
};
//====== Output timing Register Value ============//
unsigned char code ucaZoomDataP0_RGB565[29]={
//Full
0xA0, 0x33, 0x13, 0x99, 0x0F, 0xB6, 0x8D, 0x2E, 0x02, 
0xE9, 0x00, 0x0D, 0x20, 0x03, 0xE0, 0x01, 0x13, 0x05, 
0x0C, 0x02, 0x10, 0x03, 0x00, 0x00, 0x20, 0x03, 0xE0, 
0x01, 0x11};
unsigned char code ucaZoomDataP1_RGB565[6]={
//Full
0x37,0xE0,0x01,0x14,0xEA,0x00};
//************************************************//

void SRC_565(void);
#endif	//__RGB565_H__
/*******************************************************************************
*          T10x Output timing Register Adress and Value for static condition   *
*******************************************************************************/
extern unsigned char code ucaZoomAdrP0_RGB565[29];
extern unsigned char code ucaZoomAdrP1_RGB565[6];
extern unsigned char code ucaZoomDataP0_RGB565[29];
extern unsigned char code ucaZoomDataP1_RGB565[6];
//************************************************//

⌨️ 快捷键说明

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