I am trying to work with STM32 board and I want a function, to be executed repeatedly for a certain period of time. The code looks something like this.
while (1)
{
/* USER CODE END WHILE */
for(count = 0; count<1000;count++){
num_display_func(count);
/ /HAL_Delay(10);
}
How to make the function run multiple times, let’s say within in a period of 1 sec?
I have tried using while loop yet I cannot wrap my head around.