Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <------>int comres = 0;
- <------>unsigned char data1, data2;
- <------>comres = bma2x2_smbus_read_byte(client, BMA2X2_MODE_CTRL_REG, &data1);
- <------>comres = bma2x2_smbus_read_byte(client, BMA2X2_LOW_NOISE_CTRL_REG,
- <------><------><------>&data2);
- <------>data1 = (data1 & 0xE0) >> 5;
- <------>data2 = (data2 & 0x40) >> 6;
Advertisement
Add Comment
Please, Sign In to add comment