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

Function checkReady

samples/DFPlayerMini/app/application.cpp:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void checkReady()
17{
18 static bool ledState;
19
20 ledState = !ledState;
21 digitalWrite(GPIO_LED, ledState);
22
23 if(!player.begin(Serial)) {
24 return;
25 }
26
27 digitalWrite(GPIO_LED, 0);
28
29 player.volume(15);
30
31 timer.initializeMs<10000>(nextSong).start();
32}
33
34} // namespace
35

Callers

nothing calls this directly

Calls 3

digitalWriteFunction · 0.50
beginMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected