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

Function init

samples/Display_TM1637/app/application.cpp:154–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152} // namespace
153
154void init()
155{
156 Serial.begin(SERIAL_BAUD_RATE);
157 Serial.systemDebugOutput(true);
158
159 Serial << _F("Sample TM1637 application") << endl;
160
161#ifdef ARCH_HOST
162 setDigitalHooks(nullptr);
163#endif
164
165 stateTimer.initializeMs<TEST_DELAY>([]() {
166 if(!testDisplay()) {
167 stateTimer.startOnce();
168 }
169 });
170 stateTimer.startOnce();
171}

Callers

nothing calls this directly

Calls 5

setDigitalHooksFunction · 0.85
testDisplayFunction · 0.85
systemDebugOutputMethod · 0.80
startOnceMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected