📄 rgb565.c
字号:
#include "RGB565.h"
/**********************************************************************************
* File: RGB565.c
* 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 36278
#endif // _800_480
*/
//*******************************************************//
/*******************************************************************************
* 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};
//************************************************//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -