The sketch i was using to test was the code from http://learn.adafruit.com/sparkle-skirt/code (since im using similar items).
I have installed the library Adafruit_LSM303DLHC , however when i verify the sketch it says im missing Adafruit_Sensor.h which it appears to include.
So from there i installed the Adafruit_Sensor from https://github.com/adafruit/Adafruit_Sensor - however this did not work or detect for some reason. I copied the .h files etc into the Adafruit_LSM303DLHC library which allowed it to be used, however now im getting the error
- Code: Select all
motionled.ino:13:1: error: ‘Adafruit_LSM303’ does not name a type
motionled.ino: In function ‘void setup()’:
motionled.ino:34:8: error: ‘lsm’ was not declared in this scope
motionled.ino: In function ‘void loop()’:
motionled.ino:46:3: error: ‘lsm’ was not declared in this scope
Can anyone tell me why the Adafruit_Sensor was not detected/used prior to putting it in the other dirs ? It has no - or other odd characters, the only difference i could see was no examples dir.
Secondly, does anyone know why the sketch is not working for that? is this related to the Adafruit_Sensors problems?