mBlock and mBot libraries in Arduino Mode


#1

Hi, every time I use an mBot extension in my code under mBlock, I get this error message when the code is compiled before being uploaded:

"5-31 23:12: ####Error####
In file included from mBot.h:11,
                 from project_hymne4_0_36.ino.cpp:5:
MeTemperature.h:4:23: error: MeOneWire.h: No such file or directory

5-31 23:12: ####Error####
In file included from mBot.h:11,
                 from project_hymne4_0_36.ino.cpp:5:
MeTemperature.h:17: error: 'MeOneWire' does not name a type

5-31 23:12: Process exited with 1"

Help would be appreciated. Maybe a compatibility issue between mBlock and Arduino IDE?
The MakeBlock examples in Arduino IDE work fine though. So, in the meantime, could you post source code to the original mBot configuration so my child can use the remote to control the mBot once again? Thank you.


#2

This could be helpful to anyone, so here I go replying to myself. I have downloaded latest mBlock and mBlock libraries from Github and everything works as expected. My only regret is that you have not provided a mBlock project or Arduino source file to restore the mBot to factory settings. I will open a new thread for this.


#3

Hi David,

Could you expand a bit on what you did with the downloaded libraries? As in, uninstall mBlock software and then re-install from the git version? It seems a bunch of people, including myself, are trying to restore the factory settings… one linked to this repo, but trying to compile the .ino file fails for me:

Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
firmataMbot.ino: In function 'void setPinModeCallback(byte, int)':
firmataMbot:245: error: 'IGNORE' was not declared in this scope
firmataMbot.ino: In function 'void sysexCallback(byte, byte, byte*)':
firmataMbot:601: error: 'class FirmataClass' has no member named 'write'
...
### a bunch more errors like that
...
firmataMbot.ino: In function 'void loop()':
firmataMbot:839: error: 'class FirmataClass' has no member named 'write'
...
### some more errors like this

Assembly was so easy… I’m finding the documentation to be pretty bad, which is disappointing. Thanks for any extra information on what you did for your issue.