seeed-studio / accelerometer_adxl335 Goto Github PK
View Code? Open in Web Editor NEWSeeed 3-Axis Analog Accelerometer library
Home Page: http://www.seeedstudio.com/depot/Grove-3Axis-Analog-Accelerometer-p-1086.html
License: MIT License
Seeed 3-Axis Analog Accelerometer library
Home Page: http://www.seeedstudio.com/depot/Grove-3Axis-Analog-Accelerometer-p-1086.html
License: MIT License
Im getting the below error message when running the examples:
Using library Accelerometer_ADXL335 at version 1.0.0 in folder: C:\Users
exit status 1
no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)'
Is this due to the function declaring the varaiables as int16_t in the original function and then declaring them as just int in the getAcceleration function?
T
When I try to run the Calibration code i get this error:
C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino: In function 'void setup()': Calibration:40:40: error: no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)' accelerometer.getXYZ(&x, &y, &z); ^ In file included from C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino:28:0: C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: candidate: void ADXL335::getXYZ(int16_t*, int16_t*, int16_t*) void getXYZ(int16_t *x,int16_t *y,int16_t *z); ^~~~~~ C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: no known conversion for argument 1 from 'int*' to 'int16_t* {aka short int*}' C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino: In function 'void calibrate(int*, int*, int*)': Calibration:84:36: error: no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)' accelerometer.getXYZ(&x, &y, &z); ^ In file included from C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino:28:0: C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: candidate: void ADXL335::getXYZ(int16_t*, int16_t*, int16_t*) void getXYZ(int16_t *x,int16_t *y,int16_t *z); ^~~~~~ C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: no known conversion for argument 1 from 'int*' to 'int16_t* {aka short int*}' Mehrere Bibliotheken wurden für "ADXL335.h" gefunden Benutzt: C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335 Nicht benutzt: C:\Users\janse\Documents\Arduino\libraries\AnalogAccelerometer exit status 1 no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)'
not working in esp 32
I try to run the code with my accelerometer ADXL335 and print out the value in LCD. In my observation, the initial value of X-axis acceleration is high which is 1.22g to 1.23g. I thought that maybe the initial voltage of the sensor is high and effect the value of the acceleration in the beginning. Hence I try to delay around 1 second, when the sensor is turned on. But the value still same. Can I ask why? How to solve this problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.