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

Difficulties connecting the device. #8

Open dpaetsch opened 5 years ago

dpaetsch commented 5 years ago

Greetings, I'm having a little trouble with the code you posted, I have included both wire and adxl libraries and have them installed on the arduino program and have copied and pasted your code but an error code keeps popping up when I declare adxl as a variable ADXL. The error message says "no matching function for call to 'ADXL345::ADXL345()' " Thank you for your time, it would mean a lot if someone helped me out

Pillar1989 commented 5 years ago

Is there any update on this issue? No problem was found in our test

facukolo commented 1 year ago

Hola, la solución es que en la misma carpeta donde está el archivo demo, copien el ADXL345.cpp y .h. De ese modo, cuando ejecuten la IDE de Arduino deben aparecer esas dos pestañas en la ventana. Por último, cambien #include por #include "ADXL345.h".

Pardova commented 1 year ago

Got it, thanks for your help.

Wang

facukolo @.***> 於 2023年5月18日 週四 下午1:14寫道:

Hola, la solución es que en la misma carpeta donde está el archivo demo, copien el ADXL345.cpp y .h. De ese modo, cuando ejecuten la IDE de Arduino deben aparecer esas dos pestañas en la ventana. Por último, cambien

include por #include "ADXL345.h".

— Reply to this email directly, view it on GitHub https://github.com/Seeed-Studio/Accelerometer_ADXL345/issues/8#issuecomment-1552409147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWZ6ZHHHUJP4ACNP7VLCMDXGWV4HANCNFSM4HL2ARSA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ackPeng commented 1 day ago

Does this problem still exist now?