Ok, Giovanni. Here we go!
When I asked you to read the README FILE, this was not for fun! I told you it is all explained there. Had you followed my advice you would have discovered by yourself that the library in fact is named MeOrion.h
)! The advice to read was for you, not for me!
So, for your convenience I copy the ReadMe file here , with the relevant text snippets in boldface:
BEGIN README FILE
Makeblock Library v3.22
Arduino library for Makeblock electronic modules
This library is version 3.22, we do a lot of modifications in the code structure, It has a very big difference with the 2.0 version. we recommend all Makeblock customers to use this one.
How to use:
Download the source from the git https://github.com/Makeblock-official/Makeblock-Libraries
copy the makeblock folder to your arduino default library, Your Arduino library folder should now look like this (on Windows): [arduino installation directory]\libraries\makeblock\src
Open the Arduino Application. If already open it, you need to restart to see changes.
Click “File->Examples”. Here are some test program in MakeBlockDrive->example
Depending on the type of motherboard you’re using, You should modify the header file. For example, you are using a mCore, you should change "#include " to "#include " Correspondence between the board and the header file is:
Orion -------- MeOrion.h
BaseBoard ---- MeBaseBoard.h
mCore -------- MeMCore.h
END README FILE
I also doubt that you even use a library V 3.x. Your script example looks like it is from the old and outdated V2 library. Library V3.x comes with this example sketch for the buzzer (<pre>
section stripped here):
#include "MeOrion.h"
void setup()
{
}
void loop()
{
buzzerOn();
delay(1000);
buzzerOff();
delay(1000);
}
As you can see, the example uses only the MeOrion.h library, not “MakeBlock.h”. Hence MeOrion.h refers to (“includes”) the other libraries, this one is the only one to be included into your sketch.
Please double check which library version you use. Then download the latest library from the path given in the ReadMe above. I am sure it will work then.