I have 0.75 secs (750000 Msecs) to display 250 Columns and every column needs to be displayed during 3000 Msecs.
This is my approach :
Total_Col = 250;
Interval = 3000;
Col_Count = 0;
while ( Col_Count >= Total_Col-1)
{
uint32_t Time_Now = millis();
unit32_t One_Column = 0L;
while ((Time_Now=micros()) <Interval + (Time_Now=micros()))
{
Do Something*
}
One_Column = One_Column + 3000;
Col_Count++;
}
My question is where should I reset the variable One_Column after reading Column number one?.
Also, should I reset the Col_Count variable after all 250 Columns have been read?
I am not sure if my time variables will do the required job.
I used to write BASIC programs long ago, so please if you find syntax errors let me know. I don't know how to use the while statement.
Thanks a lot in advance.