常用LCD驱动芯片ILI9806E SPI接口底层驱动配置代码
void ILI9806E_init(void)
{
// SPI_RES=1; // reset lcd
// Delayms(10);
// SPI_RES=0;
// Delayms(10);
// SPI_RES=1;
// Delayms(100);
SPI_write_reg(0xFF);
SPI_write_dat(0XFF);
SPI_write_dat(0X98);
SPI_write_dat(0X06);
SPI_write_dat(0X04);
SPI_write_dat(0X01); // Change to Page 1
SPI_write_reg(0x08);
SPI_write_dat(0x10); // output SDA
......
评论