Closed hathach closed 3 years ago
This PR add Arduino compatible API as https://github.com/arduino-libraries/Arduino_LSM6DSOX/blob/master/src/LSM6DSOX.h#L34
This allow for sketch that run on arduino sensonr/platform can be easily migrated to use with Adafruit Sensor (e.g https://experiments.withgoogle.com/tiny-motion-trainer)
// Arduino compatible API int readAcceleration(float &x, float &y, float &z); float accelerationSampleRate(void); int accelerationAvailable(void); int readGyroscope(float &x, float &y, float &z); float gyroscopeSampleRate(void); int gyroscopeAvailable(void);
PS: written fashion that requires https://github.com/adafruit/Adafruit_BusIO/pull/46, therefore this is submitted as draft for now
thank you for your review
This PR add Arduino compatible API as https://github.com/arduino-libraries/Arduino_LSM6DSOX/blob/master/src/LSM6DSOX.h#L34
This allow for sketch that run on arduino sensonr/platform can be easily migrated to use with Adafruit Sensor (e.g https://experiments.withgoogle.com/tiny-motion-trainer)
PS: written fashion that requires https://github.com/adafruit/Adafruit_BusIO/pull/46, therefore this is submitted as draft for now