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: