全新2.4寸TFT液晶显示屏(带触摸屏),控制器ILI9328,不含转接板。
只要显示屏,不带触摸的客户请联系客服,价格另议。
搭配转接板(测试板)每片另加10~15元(不含元器件)。
技术资料(液晶规格书,控制器ic规格书等)请联系客服或在此网站下载:http://www.mcufriend.com/
提供各种单片机(51,avr,pic,msp430),arm(包含stm32)的测试程序,并移植好相应的ucgui,ucos代码,可根据用户的要求进行软硬件的设计修改。
主要参数
引脚接口图:
以下图片为本站实际拍摄:
转接板(测试板)图片:分别可测试2.4寸,2.6寸,2.8寸,3.2寸液晶显示屏,加cpu就是一个实验板,大客户免费赠送,可缩短开发周期。
转接板接口脚定义
部分驱动程序数:
void ILI9328_SHARP 24_Initial(void)
{
// VCI=2.8V
//************* Reset LCD Driver ****************//
LCD_nRESET = 1;
delayms(1); // Delay 1ms
LCD_nRESET = 0;
delayms(10); // Delay 10ms // This delay time is necessary
LCD_nRESET = 1;
delayms(50); // Delay 50 ms
//************* Start Initial Sequence **********//
LCD_CtrlWrite_ILI9328(0x0010, 0x0000);
LCD_CtrlWrite_ILI9328(0x0011, 0x0007);
LCD_CtrlWrite_ILI9328(0x0012, 0x0000);
LCD_CtrlWrite_ILI9328(0x0007, 0x0000);
delayms(200);
LCD_CtrlWrive_ILI9328(0x0001, 0x0100);
LCD_CtrlWrite_ILI9328(0x0002, 0x0700);
LCD_CtrlWrite_ILI9328(0x0003, 0x1030);
LCD_CtrlWrite_ILI9328(0x0004, 0x0000);
LCD_CtrlWrite_ILI9328(0x0008, 0x0207);
LCD_CtrlWrite_ILI9328(0x0009, 0x0000);
LCD_CtrlWrite_ILI9328(0x000A, 0x0000);
LCD_CtrlWrite_ILI9328(0x000C, 0x0000);
LCD_CtrlWrite_ILI9328(0x000D, 0x0000);
LCD_CtrlWrite_ILI9328(0x000F, 0x0000);
LCD_CtrlWrite_ILI9328(0x002B, 0x000C);
LCD_CtrlWrite_ILI9328(0x0090, 0x0010);
LCD_CtrlWrite_ILI9328(0x0092, 0x0600);
LCD_CtrlWrite_ILI9328(0x0011, 0x0247);
LCD_CtrlWrite_ILI9328(0x0013, 0x1800);
LCD_CtrlWrite_ILI9328(0x0029, 0x002A);
delayms(25);
LCD_CtrlWrite_ILI9328(0x0010, 0x0190);
delayms(25);
LCD_CtrlWrite_ILI9328(0x0012, 0x009E);
delayms(25);
// ----------- Adjust the Gamma Curve ----------//
LCD_CtrlWrite_ILI9328(0x0030, 0x0000);
LCD_CtrlWrite_ILI9328(0x0031, 0x0202);
LCD_CtrlWrite_ILI9328(0x0032, 0x0707);
LCD_CtrlWrite_ILI9328(0x0035, 0x0300);
LCD_CtrlWrite_ILI9328(0x0036, 0x0004);
LCD_CtrlWrite_ILI9328(0x0037, 0x0000);
LCD_CtrlWrite_ILI9328(0x0038, 0x0505);
LCD_CtrlWrite_ILI9328(0x0039, 0x0707);
LCD_CtrlWrite_ILI9328(0x003C, 0x0003);
LCD_CtrlWrite_ILI9328(0x003D, 0x0004);
//------------------ Set GRAM area ---------------//
LCD_CtrlWrite_ILI9328(0x0020, 0x0000);
LCD_CtrlWrite_ILI9328(0x0021, 0x0000);
LCD_CtrlWrite_ILI9328(0x0050, 0x0000);
LCD_CtrlWrite_ILI9328(0x0051, 0x00EF);
LCD_CtrlWrite_ILI9328(0x0052, 0x0000);
LCD_CtrlWrite_ILI9328(0x0053, 0x013F);
LCD_CtrlWrite_ILI9328(0x0060, 0xA700);
LCD_CtrlWrite_ILI9328(0x0061, 0x0001);
LCD_CtrlWrite_ILI9328(0x006A, 0x0000);
//-------------- Partial Display Control ---------//
LCD_CtrlWrite_ILI9328(0x0080, 0x0000);
LCD_CtrlWrite_ILI9328(0x0081, 0x0000);
LCD_CtrlWrite_ILI9328(0x0082, 0x0000);
LCD_CtrlWrite_ILI9328(0x0083, 0x0000);
LCD_CtrlWrite_ILI9328(0x0084, 0x0000);
LCD_CtrlWrite_ILI9328(0x0085, 0x0000);
LCD_CtrlILI9328(0x0022);
delayms(20);
LCD_CtrlWrite_ILI9328(0x0010, 0x1190);
LCD_CtrlWrite_ILI9328(0x0007, 0x0133);
}
void LCD_ExitSleep_ILI9328(void)
{
//*************Power On sequence ******************//
LCD_CtrlWrite_ILI9328(0x0010, 0x0080);
LCD_CtrlWrite_ILI9328(0x0011, 0x0000);
LCD_CtrlWrite_ILI9328(0x0012, 0x0000);
LCD_CtrlWrite_ILI9328(0x0013, 0x0000);
delayms(200);
LCD_CtrlWrite_ILI9328(0x0010, 0x1490);
LCD_CtrlWrite_ILI9328(0x0011, 0x0227);
delayms(50);
LCD_CtrlWrite_ILI9328(0x0012, 0x001C);
delayms(50);
LCD_CtrlWrite_ILI9328(0x0013, 0x1A00);
LCD_CtrlWrite_ILI9328(0x0029, 0x0025);
delayms(50);
LCD_CtrlWrite_ILI9328(0x0007, 0x0133);
}
//------LCD_EnterSleep_ILI9328--------//
{
LCD_CtrlWrite_ILI9328(0x0007, 0x0131);
delayms(10);
LCD_CtrlWrite_ILI9328(0x0007, 0x0130);
delayms(10);
LCD_CtrlWrite_ILI9328(0x0007, 0x0000);
//---------power off sequence----//
LCD_CtrlWrite_ILI9328(0x0010, 0x0080);
LCD_CtrlWrite_ILI9328(0x0011, 0x0000);
LCD_CtrlWrite_ILI9328(0x0012, 0x0000);
LCD_CtrlWrite_ILI9328(0x0013, 0x0000);
delayms(200);
LCD_CtrlWrite_ILI9328(0x0010, 0x0082);
}
特别声明:我们的货品发出时都经过测试,请您收到货物后使用无焊接测试架自行安排测试,有问题的产品及时退还我们安排退换,排线焊接后,不予以退换。