Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Does a micros() function exist?
PostPosted: Fri May 18, 2012 12:12 am 

Joined: Wed Jan 12, 2011 4:41 pm
Posts: 20
Hi
Just wondering if the equivalent of millis() exist for microseconds time delay readings. Otherwise, how would you recommend measuring microseconds delays with Waspmote.
Thanks!


Top
 Profile  
 
 Post subject: Re: Does a micros() function exist?
PostPosted: Fri May 18, 2012 8:22 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7514
Hi henoc,

I'm afraid micros() is not implemented in the Waspmote libraries. If you need to set a delay, delayMicroseconds() will work the same as delay, if you need to measure time between two events you'll have to use one of the 16bit timer/counters of the microcontroller.

Regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use