Hi all, we’re new here. Just got mBot and trying to get started with programming it.
We have installed mBlock software and are able to run it.
The device seems to be connecting fine. But when we’re trying to do one simple block and compile, we get
error: ‘millis’ was not declared in this scope
long endTime = millis() + seconds * 1000;
Which looks like there is a library that needs to be included, the one that should have the millis function in it.
We see where there is a </> sign on the top right which lets us view part of the code - opens up with “Arduino C” title at the top. But it won’t let us edit anything in there - only to view. I thought if we could edit the code, we could try different #include-s that we’ve seen mentioned on this forum, but can’t find a way to edit anything. We are able to move blocks. And we see where we could switch from “Blocks” to “Arduino C”, but when we switch to the “Arduino C” mode, while we’re able to type there, we’re not sure what to type - it’s a completely blank page.
There is nothing for mBot in the “Example Programs” in the menu.
And we’ve spend hours trying to find a solution to this problem. Can’t even get started with the new mBot programming :(. Please help Thanks!