Seeed-Studio / Accelerometer_ADXL345

Seeed 3-Axis Digital Accelerometer library
http://www.seeedstudio.com/depot/Grove-3Axis-Digital-Accelerometer16g-p-1156.html
MIT License
25 stars 23 forks source link

Errors running the code #1

Closed eibragimova closed 5 years ago

eibragimova commented 10 years ago

Dear all,

when I upload the code, I get these errors in the arduino:

ADXL345_demo_code.ino: In function 'void loop()': ADXL345_demo_code:87: error: 'class ADXL345' has no member named 'readXYZ' ADXL345_demo_code:98: error: 'class ADXL345' has no member named 'getAcceleration'

Has anyone had the same problem or does anyone know of a solution? (kind of a newbie here :)

reeedstudio commented 10 years ago

Hi, I try the code and it's nothing wrong, may I ask did you put this library to libraries folder to you Arduino? just like this : ....\arduino-1.0.5\libraries