java: converted all int16_t* to short[] and updated examples

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Stefan Andritoiu
2015-11-03 17:40:37 +02:00
committed by Mihai Tudor Panu
parent 6e2355ce9a
commit ba43986f82
8 changed files with 24 additions and 26 deletions

View File

@ -41,7 +41,7 @@ public class LSM303Sample {
// Get the coordinate data
sensor.getCoordinates();
int[] coor = sensor.getRawCoorData(); // in XYZ order.·
short[] coor = sensor.getRawCoorData(); // in XYZ order.·
// The sensor returns XZY, but the driver compensates and makes it XYZ
// Print out the X, Y, and Z coordinate data using two different methods
@ -54,7 +54,7 @@ public class LSM303Sample {
// Get the acceleration
sensor.getAcceleration();
int[] accel = sensor.getRawAccelData();
short[] accel = sensor.getRawAccelData();
// Print out the X, Y, and Z acceleration data using two different
// methods