Non - blocking delay between SPI transfers for LED Screen graphic effects

Hi,

Good Day!

Problem: We have LED Screen connected to nrf52832 through SPI com and we have some led graphic effects in our application which requires some delay between SPI transfers to the display (softdevice is used in our application). Figured out that using nrf_delay_ms() function will not work effectively. 

Query:

How to implement a delay between SPI TXfers in non-blocking mode and which is also safe to use with the softdevice? Had a hard time implementing it with app_timer, because for SPI transfers we need to send the data and app_timerout_handler does not take any input arguments which is obvious. 

Kindly share your insights and help us solve this issue.

Thank you,
Aim High

Related