| 16 | } |
| 17 | |
| 18 | void init() |
| 19 | { |
| 20 | Serial.begin(SERIAL_BAUD_RATE); // 115200 by default |
| 21 | Serial.systemDebugOutput(true); // Debug output to serial |
| 22 | Serial.println("Starting..."); |
| 23 | |
| 24 | // You can change pins: |
| 25 | //Wire.pins(14, 12); // SDA, SCL |
| 26 | Wire.begin(); |
| 27 | |
| 28 | // Select the Working Mode |
| 29 | accel.initSensitivity(MMA_7455_2G_MODE); |
| 30 | |
| 31 | // Start reading loop |
| 32 | procTimer.initializeMs<300>(readSensor).start(); |
| 33 | } |
nothing calls this directly
no test coverage detected