v61_0
Revision 7:164a2086348d, committed 2021-08-06
- Comitter:
- gr66
- Date:
- Fri Aug 06 14:52:00 2021 +0000
- Parent:
- 6:798481567563
- Commit message:
- V60
Changed in this revision
LSM6DS33_GR1.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 798481567563 -r 164a2086348d LSM6DS33_GR1.cpp --- a/LSM6DS33_GR1.cpp Tue Jul 06 07:12:44 2021 +0000 +++ b/LSM6DS33_GR1.cpp Fri Aug 06 14:52:00 2021 +0000 @@ -113,7 +113,7 @@ i2c.stop(); // Temperature is a 12-bit signed integer - //temperature_raw = data[0] | (data[1] << 8); + temperature_raw = data[0] | (data[1] << 8); gxl = data[2] ; gxh =data[3] ; gyl = data[4] ; @@ -141,7 +141,7 @@ // time_raw = tsdata[0] | (tsdata[1] << 8) | (tsdata[2] << 16); - // temperature_c = (float)temperature_raw / 16.0 + 25.0; + temperature_c = (float)temperature_raw / 16.0 + 25.0; // gx = gx_raw * gRes; // gy = gy_raw * gRes; // gz = gz_raw * gRes;