You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using an SPI LCD screen, one of the operations is to full the screen, which is actually writing the same color data as the number of pixels on the screen.
Using the SPL library, the SPI DMA channel can be set up like this:
Because the memory address does not increase, the specified amount of the same data will be written to MOSI.
But I can't find a similar method in embassy_stm32::spi::Spi. It can be done using write, but if the screen pixels are large, the stack will explode, and using the heap is not advisable.
I am using an SPI LCD screen, one of the operations is to full the screen, which is actually writing the same color data as the number of pixels on the screen.
Using the SPL library, the SPI DMA channel can be set up like this:
Because the memory address does not increase, the specified amount of the same data will be written to MOSI.
But I can't find a similar method in
embassy_stm32::spi::Spi
. It can be done usingwrite
, but if the screen pixels are large, the stack will explode, and using the heap is not advisable.I hope there will be something like:
The text was updated successfully, but these errors were encountered: