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

Method getEffectNames

src/DisplayManager.cpp:2510–2522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2508}
2509
2510String DisplayManager_::getEffectNames()
2511{
2512 StaticJsonDocument<1024> doc;
2513 JsonArray array = doc.to<JsonArray>();
2514 for (int i = 0; i < numOfEffects; i++)
2515 {
2516 array.add(effects[i].name);
2517 }
2518 String result;
2519 serializeJson(array, result);
2520 doc.clear();
2521 return result;
2522}
2523
2524String DisplayManager_::getTransitionNames()
2525{

Callers 2

onMqttConnectedFunction · 0.80
addHandlerFunction · 0.80

Calls 2

addMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected