MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / getTransitionNames

Method getTransitionNames

src/DisplayManager.cpp:2524–2539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2522}
2523
2524String DisplayManager_::getTransitionNames()
2525{
2526 char effectOptions[100];
2527 strcpy_P(effectOptions, HAeffectOptions);
2528 StaticJsonDocument<1024> doc;
2529 char *effect = strtok(effectOptions, ";");
2530 while (effect != NULL)
2531 {
2532 doc.add(effect);
2533 effect = strtok(NULL, ";");
2534 }
2535 String json;
2536 serializeJson(doc, json);
2537 doc.clear();
2538 return json;
2539}
2540
2541// ### DRAWING FUNCTIONS ###
2542

Callers 2

onMqttConnectedFunction · 0.80
addHandlerFunction · 0.80

Calls 2

addMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected