2019-07-02 01:01 AM
I have a demo board STM32F429I-DISC1.
There is a SPI configuration in LCD configuration function
LCD_SPIConfig();
And then
void LCD_WriteData(uint8_t value)
{
/* Set WRX to send data */
LCD_CtrlLinesWrite(LCD_WRX_GPIO_PORT, LCD_WRX_PIN, Bit_SET);
/* Reset LCD control line(/CS) and Send data */
LCD_ChipSelect(DISABLE);
SPI_I2S_SendData(LCD_SPI, value);
/* Wait until a data is sent(not busy), before config /CS HIGH */
while(SPI_I2S_GetFlagStatus(LCD_SPI, SPI_I2S_FLAG_TXE) == RESET) ;
while(SPI_I2S_GetFlagStatus(LCD_SPI, SPI_I2S_FLAG_BSY) != RESET);
LCD_ChipSelect(ENABLE);
}
But the LCD on the demo board doesn't have any SPI interface.
Do I miss something?