MCPcopy Create free account
hub / github.com/Santroller/Santroller / begin

Method begin

lib/accelerometer/accelerometerlib.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void 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}
30void Accelerometer::end()
31{
32 printf("accel end\r\n");

Callers

nothing calls this directly

Calls 1

dmaInitMethod · 0.80

Tested by

no test coverage detected