One task multiple delay timer

Task related topics

One task multiple delay timer

Postby haytick » Wed Nov 04, 2015 8:42 am

I just started on cocoos,

it is possible to have multiple delay in one task,

example: task1 (void)
haytick
 
Posts: 2
Joined: Wed Nov 04, 2015 8:40 am

Re: One task multiple delay timer

Postby haytick » Wed Nov 04, 2015 8:48 am

Sorry, i accidentally posted the thread when i not yet finished typing.

is it possible to do that as follow

example:
void task1(void)
{
do something....
delay(10ms)
do something....
delay(20ms)
do something....
delay(1s)
}
haytick
 
Posts: 2
Joined: Wed Nov 04, 2015 8:40 am

Re: One task multiple delay timer

Postby peter » Wed Dec 16, 2015 8:23 pm

Yes
peter
Site Admin
 
Posts: 18
Joined: Wed Mar 07, 2012 9:32 am


Return to Tasks

Who is online

Users browsing this forum: No registered users and 1 guest

cron