FemmeVerbeek / Arduino_LSM9DS1

LSM9DS1 Library for Arduino
Other
63 stars 14 forks source link

Add ability to read raw ADC counts for accel/gyro/mag as int16 #9

Open jublin opened 4 years ago

jublin commented 4 years ago

Adding the ability to read Raw Int16 values form the IMU gives a developer more ability to scale to any given units or use the raw counts themselves.

Whitespace changes come from auto-trim of whitespace on save.

usage is the same as read()/readRaw()

int16_t x,y,z;
IMU.readRawAccelInt16(x,y,z);