Mbot timer resolution


#1

Hi when I use the timer in Mblock / Mbot does it give me a count in seconds or miliseconds? (Mblock3.4.10)
And, if it is in seconds, is there a way to access mS resolution from Mblock when writing for Mbot?

The reason I am asking this is that I am trying to help my partner realize a simple multi-tasking program for the Mbot that calls functions at 10mS, 100mS, 1000mS etc depending on their time criticality.

Thanks


#2

Hi Thanks_to_Caleb_Chun,

You can check its source code for this program block on the mBlock software:


If you want to call functions at 10mS, 100mS, 1000mS, you may need to program it via the Arduino software.


#3

Thank you for the response. I have achieved a multi-tasking program of a sort that calls four tasks at different times. I will post the makeblock code to the correct part of the forum and see what others think.


#4