MCPcopy Create free account
hub / github.com/SmingHub/Sming / init

Function init

samples/Accelerometer_MMA7455/app/application.cpp:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void 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}

Callers

nothing calls this directly

Calls 5

systemDebugOutputMethod · 0.80
printlnMethod · 0.80
initSensitivityMethod · 0.80
beginMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected