Firefly开源社区
标题:
小白一个,请教如何基于rk3288平台 添加mipi接口4lane lcd驱动
[打印本页]
作者:
nds_shenzhen
时间:
2017-6-13 20:40
标题:
小白一个,请教如何基于rk3288平台 添加mipi接口4lane lcd驱动
如题,公司需要添加个lcd屏幕驱动,打算让我点亮,我现在有点不知道怎么入手。
供应商只给了简单的初始化代码。规格书 时序都没有。请问,我该如何入手。麻烦请教
TFT7201280-48-E(4.99D)v1.0.pdf
(795.48 KB, 下载次数: 7)
2017-6-13 20:40 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
QQ截图20170613203654.png
(218.33 KB, 下载次数: 509)
下载附件
2017-6-13 20:38 上传
#if 1
/**********initial code**********/
// Set EXTC
{0x39, 0, 0, 0, 0, 4,{0xB9,0xFF,0x83,0x94}},
// Set Power VSPR=VSNR=5.0 VGH=16V,VGL=-10V
{0x39, 0, 0, 0, 0, 11,{0xB1,0x48,0x14,0x74,0x09,0x33,0x54,0x71,0x31,0x57,0x2F}},
// Set MIPI
{0x39, 0, 0, 0, 0, 7,{0xBA,0x63,0x03,0x68,0x6B,0xB2,0xC0}},
// Set Display
{0x39, 0, 0, 0, 0, 7,{0xB2,0x00,0x80,0x64,0x06,0x0E,0x2F}},
// Set CYC
{0x39, 0, 0, 0, 0, 22,{0xB4,0x01,0x78,0x01,0x78,0x01,0x78,0x01,0x0C,0x86,0x35,0x00,0x3F,0x1C,0x78,0x1C,0x78,0x1C,0x78,0x01,0x0C,0x86}},
//Modified By GRG For Line Imagesticking
{0x39, 0, 0, 0, 0, 22,{0xB4,0x01,0x70,0x01,0x70,0x01,0x70,0x01,0x05,0x86,0x35,0x00,0x3F,0x1C,0x70,0x01,0x70,0x01,0x70,0x01,0x05,0x86}},
// Set D3H
{0x39, 0, 0, 0, 0, 34,{0xD3,0x00,0x00,0x00,0x00,0x08,0x08,0x10,0x10,0x32,0x10,0x03,0x00,0x03,0x32,0x15,0x07,0x05,0x07,0x32,0x10,0x08,0x00,0x00,0x17,0x01,0x07,0x07,0x17,0x05,0x05,0x17,0x06,0x40}},
// Set GIP
{0x39, 0, 0, 0, 0, 45,{0xD5,0x18,0x18,0x18,0x18,0x26,0x27,0x24,0x25,0x06,0x07,0x04,0x05,0x02,0x03,0x00,0x01,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x20,0x21,0x22,0x23,0x18,0x18,0x18,0x18}},
// Set GIP
{0x39, 0, 0, 0, 0, 45,{0xD6,0x18,0x18,0x18,0x18,0x21,0x20,0x23,0x22,0x01,0x00,0x03,0x02,0x05,0x04,0x07,0x06,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x27,0x26,0x25,0x24,0x18,0x18,0x18,0x18}},
// Set Gamma
{0x39, 0, 0, 0, 0, 59,{0xE0,0x00,0x05,0x0B,0x11,0x12,0x16,0x19,0x17,0x30,0x40,0x50,0x4F,0x58,0x69,0x6F,0x71,0x7F,0x82,0x7E,0x8D,0x9E,0x4F,0x4F,0x53,0x58,0x5D,0x67,0x74,0x7F,0x00,0x05,0x0B,0x11,0x12,0x16,0x19,0x17,0x30,0x40,0x50,0x4F,0x58,0x69,0x6F,0x71,0x7F,0x82,0x7E,0x8D,0x9E,0x4F,0x4F,0x53,0x58,0x5D,0x67,0x74,0x7F}},
// Set Panel
{0x15, 0, 0, 0, 0, 2,{0xCC,0x0b}},
// Set C0H
{0x39, 0, 0, 0, 0, 3,{0xC0,0x1F,0x73}},
// Set VCOM
{0x39, 0, 0, 0, 0, 3,{0xB6,0x43,0x43}},
// Set D4h
{0x15, 0, 0, 0, 0, 2,{0xD4,0x02}},
// Set BDH
{0x15, 0, 0, 0, 0, 2,{0xBD,0x01}},
{0x15, 0, 0, 0, 0, 2,{0x36,0x00}},
// Set GAS
{0x15, 0, 0, 0, 0, 2,{0xB1,0x00}},
// Set BD
{0x15, 0, 0, 0, 0, 2,{0xBD,0x00}},
{0x15, 0, 0, 0, 0, 2,{0xC6,0xEF}},
// Sleep Out
{0x05, 0, 0, 0, 150, 1,{0x11}},
// Display ON
{0x05, 0, 0, 0, 50, 1,{0x29}},
#endif
///////////////////////////////////////////////
#define LCD_WIDTH 24
#define LCD_XSIZE 720
#define LCD_YSIZE 1280
#define VBPD 27
#define VFPD 20
#define VSPW 4
#define HBPD 60
#define HFPD 70
#define HSPW 20
复制代码
作者:
nds_shenzhen
时间:
2017-6-13 20:41
麻烦知道的朋友 指点下 方向。
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1