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

Function init

Sming/Libraries/AtClient/samples/Webcam/app/application.cpp:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38} // namespace
39
40void init()
41{
42 Serial.begin(SERIAL_BAUD_RATE);
43 Serial.systemDebugOutput(true);
44 Serial.swap(); //swap to GPIO13 and GPIO15
45
46 atClient = new AtClient(Serial);
47
48 // The commands below will be queued and executed
49 // in the same order as defined below.
50 // One command needs to finish successfully in order for the next one to start.
51 atClient->send("ATE0\r");
52 atClient->send("AT+CAMSTOP\r");
53
54 atClient->send("AT+CAMSTART=1\r");
55 atClient->send("AT+CAMCAP\r", processSize);
56}

Callers

nothing calls this directly

Calls 4

systemDebugOutputMethod · 0.80
swapMethod · 0.80
beginMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected