mireq / st7789-stm32-driver

ST7789 display driver for STM32F103C8 (blue pill)
MIT License
43 stars 7 forks source link

Add extra waiting in st7789_WaitForDMA() function for end of SPI transmission #4

Open tchv71 opened 3 years ago

tchv71 commented 3 years ago

Imho, it's needed to extra wait in this function for end of SPI transmission like: while (ST7789_SPI->SR & SPI_SR_BSY); because we can't change DC pin while transmitting data and waiting for end of transmission is not available outside.

Waiting for end of DMA transmission is not enough cause it's ended before actual SPI transmission has ended.