Fixed algorithm to read 3 bytes of accelerometer data registers
Fork of COG4050_adxl355_adxl357 by
Diff: main.cpp
- Revision:
- 5:05af38b6375a
- Parent:
- 4:23b53636b576
- Child:
- 6:45d2393ef468
--- a/main.cpp Wed Aug 08 11:57:16 2018 +0000 +++ b/main.cpp Wed Aug 08 12:13:05 2018 +0000 @@ -31,7 +31,7 @@ y = accl.scany(); z = accl.scanz(); t = accl.scant(); - pc.printf("%f \t %u \t %u \t %u \r\n" ,x,y,z,t); + pc.printf("%u \t %u \t %u \t %u \r\n" , x,y,z,t); wait(1.0); } }