| 14 | } |
| 15 | |
| 16 | void Accelerometer::begin() |
| 17 | { |
| 18 | printf("accel begin\r\n"); |
| 19 | interface.dmaInit(ADXL345_ADDRESS, this); |
| 20 | interface.dmaInit(MPU6050_ADDRESS, this); |
| 21 | interface.dmaInit(LIS3DH_ADDRESS, this); |
| 22 | interface.dmaInit(LIS3DH_ADDRESS_2, this); |
| 23 | seen_response_lis3dh_1 = true; |
| 24 | seen_response_lis3dh_2 = true; |
| 25 | seen_response_adxl345 = true; |
| 26 | seen_response_mpu6050 = true; |
| 27 | status = ACCEL_INIT; |
| 28 | processData(0, false, false, false, false); |
| 29 | } |
| 30 | void Accelerometer::end() |
| 31 | { |
| 32 | printf("accel end\r\n"); |