@whycan 在 T113-S3 配置横屏显示系统跑不起来问题 中说:
横屏没有问题的,现在正常竖屏可以了吗?
因为这个驱动芯片自带GRAM,所以不需要soc参与也很容易各种旋转。
目前竖屏能显示了,但是有这种竖纹阴影显示,你看下图片,这种问题怎么解决?
屏幕异常.png
你所说的ST7701S自带GRAM,不需要soc参与也很容易各种旋转。那是不是在初始化代码里配置,
我把屏幕厂商给的初始化代码发出来,帮忙看看怎么修改的。多谢~~
SPI_WriteComm(0xFF);
SPI_WriteData(0x77);
SPI_WriteData(0x01);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x13);
SPI_WriteComm(0xEF);
SPI_WriteData(0x08);
SPI_WriteComm(0xFF);
SPI_WriteData(0x77);
SPI_WriteData(0x01);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x10);
SPI_WriteComm(0xC0);
SPI_WriteData(0x77);
SPI_WriteData(0x00);
SPI_WriteComm(0xC1);
SPI_WriteData(0x0C);
SPI_WriteData(0x0C);
SPI_WriteComm(0xC2);
SPI_WriteData(0x07);
SPI_WriteData(0x02);
SPI_WriteComm(0xCC);
SPI_WriteData(0x10);
SPI_WriteComm(0xB0);
SPI_WriteData(0x00);
SPI_WriteData(0x0C);
SPI_WriteData(0x19);
SPI_WriteData(0x0B);
SPI_WriteData(0x0F);
SPI_WriteData(0x06);
SPI_WriteData(0x05);
SPI_WriteData(0x08);
SPI_WriteData(0x08);
SPI_WriteData(0x1F);
SPI_WriteData(0x04);
SPI_WriteData(0x11);
SPI_WriteData(0x0F);
SPI_WriteData(0x26);
SPI_WriteData(0x2F);
SPI_WriteData(0x1D);
SPI_WriteComm(0xB1);
SPI_WriteData(0x00);
SPI_WriteData(0x17);
SPI_WriteData(0x19);
SPI_WriteData(0x0F);
SPI_WriteData(0x12);
SPI_WriteData(0x05);
SPI_WriteData(0x05);
SPI_WriteData(0x08);
SPI_WriteData(0x07);
SPI_WriteData(0x1F);
SPI_WriteData(0x03);
SPI_WriteData(0x10);
SPI_WriteData(0x10);
SPI_WriteData(0x27);
SPI_WriteData(0x2F);
SPI_WriteData(0x1D);
SPI_WriteComm(0xFF);
SPI_WriteData(0x77);
SPI_WriteData(0x01);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x11);
SPI_WriteComm(0xB0);
SPI_WriteData(0x4D);
SPI_WriteComm(0xB1);
SPI_WriteData(0x4F);
SPI_WriteComm(0xB2);
SPI_WriteData(0x82);
SPI_WriteComm(0xB3);
SPI_WriteData(0x80);
SPI_WriteComm(0xB5);
SPI_WriteData(0x4E);
SPI_WriteComm(0xB7);
SPI_WriteData(0x85);
SPI_WriteComm(0xB8);
SPI_WriteData(0x20);
SPI_WriteComm(0xC1);
SPI_WriteData(0x78);
SPI_WriteComm(0xC2);
SPI_WriteData(0x78);
SPI_WriteComm(0xD0);
SPI_WriteData(0x88);
SPI_WriteComm(0xE0);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x02);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x0C);
SPI_WriteComm(0xE1);
SPI_WriteData(0x02);
SPI_WriteData(0x8C);
SPI_WriteData(0x04);
SPI_WriteData(0x8C);
SPI_WriteData(0x01);
SPI_WriteData(0x8C);
SPI_WriteData(0x03);
SPI_WriteData(0x8C);
SPI_WriteData(0x00);
SPI_WriteData(0x44);
SPI_WriteData(0x44);
SPI_WriteComm(0xE2);
SPI_WriteData(0x03);
SPI_WriteData(0x03);
SPI_WriteData(0x03);
SPI_WriteData(0x03);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0xD4);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0xD4);
SPI_WriteData(0x00);
SPI_WriteComm(0xE3);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x33);
SPI_WriteData(0x33);
SPI_WriteComm(0xE4);
SPI_WriteData(0x44);
SPI_WriteData(0x44);
SPI_WriteComm(0xE5);
SPI_WriteData(0x09);
SPI_WriteData(0xD2);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteData(0x0B);
SPI_WriteData(0xD4);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteData(0x05);
SPI_WriteData(0xCE);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteData(0x07);
SPI_WriteData(0xD0);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteComm(0xE6);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x33);
SPI_WriteData(0x33);
SPI_WriteComm(0xE7);
SPI_WriteData(0x44);
SPI_WriteData(0x44);
SPI_WriteComm(0xE8);
SPI_WriteData(0x08);
SPI_WriteData(0xD1);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteData(0x0A);
SPI_WriteData(0xD3);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteData(0x04);
SPI_WriteData(0xCD);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteData(0x06);
SPI_WriteData(0xCF);
SPI_WriteData(0x35);
SPI_WriteData(0x8C);
SPI_WriteComm(0xEB);
SPI_WriteData(0x00);
SPI_WriteData(0x01);
SPI_WriteData(0xE4);
SPI_WriteData(0xE4);
SPI_WriteData(0x44);
SPI_WriteData(0x33);
SPI_WriteComm(0xED);
SPI_WriteData(0xFF);
SPI_WriteData(0xFF);
SPI_WriteData(0xF7);
SPI_WriteData(0x65);
SPI_WriteData(0x4A);
SPI_WriteData(0x10);
SPI_WriteData(0x3B);
SPI_WriteData(0xFF);
SPI_WriteData(0xFF);
SPI_WriteData(0xB3);
SPI_WriteData(0x01);
SPI_WriteData(0xA4);
SPI_WriteData(0x56);
SPI_WriteData(0x7F);
SPI_WriteData(0xFF);
SPI_WriteData(0xFF);
SPI_WriteComm(0xEF);
SPI_WriteData(0x10);
SPI_WriteData(0x0D);
SPI_WriteData(0x04);
SPI_WriteData(0x08);
SPI_WriteData(0x3F);
SPI_WriteData(0x1F);
SPI_WriteComm(0xFF);
SPI_WriteData(0x77);
SPI_WriteData(0x01);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteComm(0x3A);
SPI_WriteData(0x55);
SPI_WriteComm(0x11);
Delay(120);
SPI_WriteComm(0x29);
//自检模式
/*
SPI_WriteComm(0xFF);
SPI_WriteData(0x77);
SPI_WriteData(0x01);
SPI_WriteData(0x00);
SPI_WriteData(0x00);
SPI_WriteData(0x12);
SPI_WriteComm(0xD1);
SPI_WriteData(0x81);
SPI_WriteComm(0xD2);
SPI_WriteData(0x08);
*/