chipKIT® Development Platform

Inspired by Arduino™

FreeIMU library port

Created Fri, 28 Dec 2012 21:28:46 +0000 by eshill


eshill

Fri, 28 Dec 2012 21:28:46 +0000

Hello as anyone got the FreeIMU library to port to the Mpide environment? I been working on this but stuck with the arduino.h library. Is my understanding correct that this makes the libraries arduino dependent? Is there a work around the arduino.h library? Any points to solution or thoughts would be greatly appreciated ... Many thanks in advance.

Steve


avenue33

Sat, 29 Dec 2012 12:21:31 +0000

Replace

#include "Arduino.h"

by

#include "WProgram.h"

eshill

Sat, 29 Dec 2012 16:29:00 +0000

Thank you avenue33, that solved that problem on to the next of setting the BYTE values correct in the ADXL345.h library ... It's always the attention to details between the different processors that catch me... Thanks again... Cheers, Steve


avenue33

Sat, 29 Dec 2012 18:23:23 +0000

You're welcome :)

Going from Arduino to chipKIT faces two difficulties:

Enjoy ;)


laputa

Thu, 13 Mar 2014 21:24:11 +0000

Could we add the lib to the mpide distribution?


majenko

Thu, 13 Mar 2014 21:28:52 +0000

Not really. It's not one of the core libraries of the system, but a library for an external third party device. Core libraries are things like serial, Wire, SPI, etc - things that communicate with external devices. We can't include libraries for each and every device under the sun - it's both too much work and it'll just end up in a big mess of libraries that we'd have to support and keep updated.

By all means set up your own distribution system - maybe on github - for the modified library and we'll include it in any lists of libraries we have control over.


laputa

Mon, 17 Mar 2014 01:46:52 +0000

Makes sence.

Trying to get the comilier going on the posted freeIMU lib. The compiler doent like it even after changing the #include as prior stated.

Is a PIC32 port available?

In file included from C:\Users\Admin\Desktop\mpide-0023-windows-20130715.\hardware\pic32\libraries\MPU60X0/MPU60X0.h:41:0, from FreeIMU_raw.cpp:7: C:\Users\Admin\Desktop\mpide-0023-windows-20130715\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/avr/pgmspace.h:4:2: error: #error ******** This sketch or library uses AVR-specific code that may not work with the chipKIT platform. See this forum for more information on porting code to chipKIT [www.chipkit.org/forum/viewforum.php?f=7] ******** In file included from FreeIMU_raw.cpp:5:0: C:\Users\Admin\Desktop\mpide-0023-windows-20130715.\hardware\pic32\libraries\MS561101BA/MS561101BA.h:83:14: error: expected unqualified-id before numeric constant