I'm a beginner in using Arduino/C++ and I'm wondering if someone can help me figuring out this little riddle:
I'm using the following library for the ADXL345 and try to switch the range from 2g to 16g:
The library seems to feature the command (cpp file) to allow this by calling the setRange function.
However using the following command line generates an error ('range_t' was not declared in this scope)
acc.setRange(range_t RANGE_16G);
Any idea what I'm doing wrong?
Another observation: usually the letters of a valid command (in this case setRange) discolor in Arduino, but in this case it didn't.