LSM303DLHC

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: LSM303DLHC

Post by adafruit_support_bill »

The "does not name a type" error means that the compiler was not able to locate the library file. In this case, it is missing the Adafruit Unified Sensor library which is required for use with the LSM303DLHC library. Make sure that you have it installed in the correct location:
https://github.com/adafruit/Adafruit_Sensor
http://learn.adafruit.com/adafruit-all- ... nstall-use

User avatar
inof8or
 
Posts: 29
Joined: Fri Jan 10, 2014 3:43 pm

Re: LSM303DLHC

Post by inof8or »

That's what I figured, the frustrating thing is that I have done almost every thing I can think of to install the library following the library install guide to the T. Really assinine ideas about recognizing the library might help at this point. Somebody told me yesterday the IDE is typically a pain for this sort of thing.

Maybe I'll try a different version of the ide in the mean time.

User avatar
inof8or
 
Posts: 29
Joined: Fri Jan 10, 2014 3:43 pm

Re: LSM303DLHC

Post by inof8or »

As it turns out for the 9 dof, it was missing up to date versions of the chip libraries. So I got readings from the 9-dof today with the pitchroll sketch

So now I know the the sensor library is working, but I'm still having the same issue with lsm303dlhc, with the example code referenced by the op

Image

This is what my library folder looks like... I have 3 lsm303 libraries... highlighted one matches .h and .cpp with #include

Image

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”