MCPcopy Create free account
hub / github.com/BruceDevices/firmware / startApp

Method startApp

src/core/startup_app.cpp:52–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool StartupApp::startApp(const String &appName) const {
53 auto it = _startupApps.find(appName);
54 if (it == _startupApps.end()) {
55 Serial.println("Invalid startup app: " + appName);
56 return false;
57 }
58
59 it->second();
60
61 delay(200);
62 tft.fillScreen(bruceConfig.bgColor);
63
64 return true;
65}
66
67std::vector<String> StartupApp::getAppNames() const {
68 std::vector<String> keys;

Callers 1

setupFunction · 0.80

Calls 3

endMethod · 0.45
printlnMethod · 0.45
fillScreenMethod · 0.45

Tested by

no test coverage detected