Used Adafruit library for the accelerometer, successfully compiled the library by modifying some key codes. Connect the accelerometer with Particle using I2C.
Sometimes old libraries cannot be compiled directly due to some deprecated features or new coding standards. It needs some extra modification to allow it to be compiled.
You can upload files of up to 20MB using this form.