:1002B : :1 :2022-09-19 14:02:27
LCD驱动芯片ST7701SI SPI接口底层驱动配置代码如果开发者对于本文件有需要的可以参考。常用LCD驱动芯片ST7701SI SPI接口底层驱动配置代码
void ST7701SI_init(void)
{
// HW_Reset();
delay_ms(120);
SPI_write_reg (0x11);//退出睡眠模式
delay_ms(120);
SPI_write_reg (0xFF);//使能Command2
SPI_write_dat (0x77);
SPI_write_dat (0x01);
SPI_write_dat (0x00);
SPI_write_dat (0x00);
SPI_write_dat (0x13);
SPI_write_reg (0xEF);//???
SPI_write_dat (0x08);
SPI_write_reg (0xFF);
SPI_write_dat (0x77);
SPI_write_dat (0x01);
SPI_write_dat (0x00);
SPI_write_dat (0x00);
SPI_write_dat (0x10);
......
01-19单片机软件模拟SPI接口的解决方案