I am working on a project with an ADXL345 accelerometer and also PCM audio. I used an ADXL library file and a PCM library file and all was well, working perfectly, until I needed to change the range on the ADXL to 16Gs. I tried to figure out how but all the ADXL sheet says is change a number to 0x11, but not how. I tried but it didn't work. Someone gave me a modified ADXL file that was supposed to help but it caused a ton of errors in my INO file so I gave up on using it.
I finally found an INO file that did NOT use the ADXL library file, and it had instructions on putting the right numbers in the right place. It's a great program but it puts one of the ADXL pins on the same pin as the PCM library file puts the speaker pin. (pin 11) I believe the file using pin 11 is either WIRE.h or SPI.h. I am so confused. These library files make part of the program basically invisible so I have no idea why things are working the way they are, and when I open them to try to understand and modify them, I feel overwhelmed and like there is not enough info to figure it out, especially for a dummy like myself.
Basically I have two files that want to use pin 11.
Can someone tell me, how do I either switch the speaker pin in the PCM.h or .c file, or switch the communication pin in WIRE or SPI so I can hook up the accelerometer AND also play sounds? Or perhaps someone could tell me how to set the range of the ADXL345 to 16Gs using an ADXL.h or .c file?