|
Re: not able to read from accelerometer
A good place to start is the examples that you're given. You already have functional code for both ways to read that sensor. Go under Help->Find Examples and then go under FRC Robotics->Sensors. You'll find example code for reading the ADXL345 with both I2C and SPI interfaces.
I'd also suggest that you double check your wiring and make sure everything's connected correctly (IIRC, the front panel diagrams to the examples also have some wiring drawings to check against).
|