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
LSM303DLHC
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- inof8or
- Posts: 29
- Joined: Fri Jan 10, 2014 3:43 pm
Re: LSM303DLHC
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.
Maybe I'll try a different version of the ide in the mean time.
- inof8or
- Posts: 29
- Joined: Fri Jan 10, 2014 3:43 pm
Re: LSM303DLHC
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
This is what my library folder looks like... I have 3 lsm303 libraries... highlighted one matches .h and .cpp with #include
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
This is what my library folder looks like... I have 3 lsm303 libraries... highlighted one matches .h and .cpp with #include
Please be positive and constructive with your questions and comments.