plot accelerometer data
Dependents: ORIGINAL_SEND_ACC_DATA_TO_PLOTTER
Diff: LSM9DS1.cpp
- Revision:
- 5:dd17a2229b9c
- Parent:
- 4:0396042de602
--- a/LSM9DS1.cpp Thu Jun 25 10:36:47 2020 +0000 +++ b/LSM9DS1.cpp Wed Jul 08 11:05:22 2020 +0000 @@ -169,7 +169,7 @@ // each device. Store those in a variable so we can return them. uint8_t mTest = mReadByte(WHO_AM_I_M); // Read the gyro WHO_AM_I uint8_t xgTest = xgReadByte(WHO_AM_I_XG); // Read the accel/mag WHO_AM_I - pc.printf("%x, %x, %x, %x\n\r", mTest, xgTest, _xgAddress, _mAddress); + //pc.printf("%x, %x, %x, %x\n\r", mTest, xgTest, _xgAddress, _mAddress); uint16_t whoAmICombined = (xgTest << 8) | mTest; if (whoAmICombined != ((WHO_AM_I_AG_RSP << 8) | WHO_AM_I_M_RSP))