Arduino IDE says fatal error: mBot.h: No such file or directory


#1

Hi,

first of all, thank you for mBot. Its a great educational robot.

I am trying to program the mBot under Linux using the Arduino IDE. I think, I have all files place d correctly in ~/sketchbook/libraries/makeblock/… but still I get the error message when trying to compile a sketch:

fatal error: mBot.h: No such file or directory

I obtained the libraries from here: https://github.com/Makeblock-official/Makeblock-Libraries . Actually, the libraries do not even contain the file mBot.h. Where does this file come from? I tried to follow the tutorial here: http://www.instructables.com/id/How-to-make-a-mBot-with-Makeblock/?ALLSTEPS . Is this guide up to date? If not, is there a newer guide for programming mBot under Linux with the Arduino IDE?

Thanks in advance for any help! Zaphod


#2

This is strange. Normally it should be MeMCore.h, try this instead.

PS. You can find some examples in the Makeblock Library, and if you use mBlock, you may refer to the generated code. These are the reliable sources.


#3

Yes indeed. Let me quote from the tutorial:

Following is one simple code for controlling the mBot by Infrared Controller.

#include "mBot.h"
#include "MePort.h"
MeBoard myBoard(mBot);
...


#4