I downloaded the Makeblock library v3.22 from https://github.com/Makeblock-official/Makeblock-Libraries and I’m able to compile and run sketches. However if I call any MeCompass methods, I get compiler errors like this:
Arduino/libraries/makeblock/MeCompass.cpp.o: In function MeCompass::writeData(unsigned char, unsigned char const*, unsigned char)': Arduino/libraries/makeblock/src/MeCompass.cpp:461: undefined reference to
TwoWire::beginTransmission(unsigned char)‘
Arduino/libraries/makeblock/src/MeCompass.cpp:462: undefined reference to `TwoWire::write(unsigned char)’
and other undefined symbols in TwoWire.
Looking in the Makeblock library, in makeblock/src/utility I see Wire.h which defines TwoWire but no Wire.cpp. In fact none of the six .h files in the utility directory have corresponding .cpp files. What do I need to do to get those files?
–Mark