setRange for ADXL345

Hi,

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.

Thanks!

acc.setRange(RANGE_16G);

How about now?

Another observation: usually the letters of a valid command (in this case setRange) discolor in Arduino, but in this case it didn't.

Because the library doesn't have a complete keywords.txt file?

Hi AWOL,

I tried that code initially, but it still gives me the RANGE_16G not declared in scope error:(

Thanks for the keywords.txt hint, I didn't know about that.

Any other ideas?

t still gives me the RANGE_16G not declared in scope error

I don't have the library, but you do (hint)

I may be mistaken but I thought that sensor did + or - 3G?

ChilliTronix:
I may be mistaken but I thought that sensor did + or - 3G?

You are.