Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpPrograms › timer

Page Index Toggle Pages: 1
timer (Read 3289 times)
06/07/10 at 17:14:36

John Keszler   Offline
YaBB Newbies

Posts: 11
*
 
Hi

I need to use a timer in this way :
the robot is searching for a ball .... wait 5 sec if it can't find the ball it goes to center.
please suggest! i found this about timing : http://wiring.org.co/reference/libraries/Timer2/Timer2.html
was there such thing as a timer1 ?

Thanks

Regards

John Alex
 
IP Logged
 
Reply #1 - 06/07/10 at 17:16:09

John Keszler   Offline
YaBB Newbies

Posts: 11
*
 
Hi again

just correcting (go to center) == it spins Tongue
 
IP Logged
 
Reply #2 - 06/07/10 at 21:12:36

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
yes, that's a way, also check this http://wiring.org.co/learning/basics/timer.html, depending on how often you could use micros() instead of millis().
 
IP Logged
 
Page Index Toggle Pages: 1