Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Timerclass constructs an objects that allows you to create a delay between other Jewelbot functions or keep track of time since the program started running.
Timer timer; //naming the variable type and then the name of variable.
|uint32_t||number||Time is milliseconds. It is the time for how long you wish to delay for.|
.pause(uint32_t milliseconds) This function pauses your Jewelbot.
Timer timer; timer.pause(1000); //this pauses your Jewelbot for 1 second.
.runtime_ms() This function returns the number of milliseconds since the program finished starting up the hardware. The return value is of type uint32_t.
Timer timer; uint32_t how_long = timer.runtime_ms();