minor modifications to adapt syntax to FreeIMU
Fork of ADXL345_I2C by
Diff: ADXL345_I2C.h
- Revision:
- 2:755d80b05eea
- Parent:
- 1:d9412b56f98a
--- a/ADXL345_I2C.h Thu May 12 01:19:36 2011 +0000 +++ b/ADXL345_I2C.h Mon Jun 24 19:43:13 2013 +0000 @@ -1,21 +1,5 @@ /** - * @author Peter Swanson - * A personal note from me: Jesus Christ has changed my life so much it blows my mind. I say this because - * today, religion is thought of as something that you do or believe and has about as - * little impact on a person as their political stance. But for me, God gives me daily - * strength and has filled my life with the satisfaction that I could never find in any - * of the other things that I once looked for it in. - * If your interested, heres verse that changed my life: - * Rom 8:1-3: "Therefore, there is now no condemnation for those who are in Christ Jesus, - * because through Christ Jesus, the law of the Spirit who gives life has set - * me free from the law of sin (which brings...) and death. For what the law - * was powerless to do in that it was weakened by the flesh, God did by sending - * His own Son in the likeness of sinful flesh to be a sin offering. And so He - * condemned sin in the flesh in order that the righteous requirements of the - * (God's) law might be fully met in us, who live not according to the flesh - * but according to the Spirit." - * - * A special thanks to Ewout van Bekkum for all his patient help in developing this library! + * * @section LICENSE * @@ -138,7 +122,9 @@ * @param mosi mbed pin to use for SDA line of I2C interface. * @param sck mbed pin to use for SCL line of I2C interface. */ - ADXL345_I2C(PinName sda, PinName scl); + //ADXL345_I2C(PinName sda, PinName scl); + + ADXL345_I2C(I2C i2c_); /** * Get the output of all three axes. @@ -147,6 +133,7 @@ * x-axis, y-axis and z-axis [in that order]. */ void getOutput(int* readings); + void getOutput(int* x, int* y, int*z); /** * Read the device ID register on the device.