树莓派B B+都可以直接使用,即插即用。
外观尺寸:
9.7cm X 6.9cm
系统下载地址:http://picimg.lshou.com/pic/pan.baidu.com/s/1pJNwGBp
void Lcd_Init(void) //ili(咨询特价)
{
Lcd_Write_Com(0xE0);
Lcd_Write_Data(0x00);
Lcd_Write_Data(0x07);
Lcd_Write_Data(0x10);
Lcd_Write_Data(0x09);
Lcd_Write_Data(0x17);
Lcd_Write_Data(0x0B);
Lcd_Write_Data(0x40);
Lcd_Write_Data(0x8A);
Lcd_Write_Data(0x4B);
Lcd_Write_Data(0x0A);
Lcd_Write_Data(0x0D);
Lcd_Write_Data(0x0F);
Lcd_Write_Data(0x15);
Lcd_Write_Data(0x16);
Lcd_Write_Data(0x0F);
Lcd_Write_Com(0xE1);
Lcd_Write_Data(0x00);
Lcd_Write_Data(0x1A);
Lcd_Write_Data(0x1B);
Lcd_Write_Data(0x02);
Lcd_Write_Data(0x0D);
Lcd_Write_Data(0x05);
Lcd_Write_Data(0x30);
Lcd_Write_Data(0x35);
Lcd_Write_Data(0x43);
Lcd_Write_Data(0x02);
Lcd_Write_Data(0x0A);
Lcd_Write_Data(0x09);
Lcd_Write_Data(0x32);
Lcd_Write_Data(0x36);
Lcd_Write_Data(0x0F);
Lcd_Write_Com(0xB1);
Lcd_Write_Data(0xA0);
Lcd_Write_Com(0xB4);
Lcd_Write_Data(0x02);
Lcd_Write_Com(0xC0);
Lcd_Write_Data(0x17);
Lcd_Write_Data(0x15);
Lcd_Write_Com(0xC1);
Lcd_Write_Data(0x41);
Lcd_Write_Com(0xC5);
Lcd_Write_Data(0x00);
Lcd_Write_Data(0x0A);
Lcd_Write_Data(0x80);
Lcd_Write_Com(0xB6);
Lcd_Write_Data(0x02);
Lcd_Write_Com(0x36);
Lcd_Write_Data(0x48);
Lcd_Write_Com(0x3a);
Lcd_Write_Data(0x55);
Lcd_Write_Com(0xE9);
Lcd_Write_Data(0x00);
Lcd_Write_Com(0XF7);
Lcd_Write_Data(0xA9);
Lcd_Write_Data(0x51);
Lcd_Write_Data(0x2C);
Lcd_Write_Data(0x82);
Lcd_Write_Com(0x11);
delay(120);
Lcd_Write_Com(0x29);
}
void Address_set(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2)
{
Lcd_Write_Com(0x2a); // Set_column_address 4 parameters
Lcd_Write_Data(x1>>8);
Lcd_Write_Data(x1);
Lcd_Write_Data(x2>>8);
Lcd_Write_Data(x2);
Lcd_Write_Com(0x2b); // Set_page_address 4 parameters
Lcd_Write_Data(y1>>8);
Lcd_Write_Data(y1);
Lcd_Write_Data(y2>>8);
Lcd_Write_Data(y2);
Lcd_Write_Com(0x2c); // Write_memory_start
}
控制器:ili(咨询特价)
分辨率:(咨询特价)0
移植好linux系统,开机运行
提供初始化代码。
树莓派B,B+
树莓派4寸液晶屏
控制器:ili(咨询特价)