MCPcopy Create free account
hub / github.com/FastLED/FastLED / init

Method init

src/platforms/shared/ui/json/json_console.cpp.hpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void JsonConsole::init() FL_NOEXCEPT {
50 // Set up JsonUI handlers - we capture component data but don't send it anywhere
51 mUpdateEngineState = setJsonUiHandlers([this](const char* jsonStr) {
52 this->processJsonFromUI(jsonStr);
53 });
54
55 if (!mUpdateEngineState) {
56 FL_WARN("JsonConsole::init: Failed to set up JsonUI handlers");
57 return;
58 }
59
60 writeOutput("JsonConsole initialized. Type 'help' for commands.");
61}
62
63void JsonConsole::update() FL_NOEXCEPT {
64 if (!mUpdateEngineState) {

Callers

nothing calls this directly

Calls 2

processJsonFromUIMethod · 0.95
setJsonUiHandlersFunction · 0.85

Tested by

no test coverage detected