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

Function setCustomColorMenu

src/core/led_control.cpp:458–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void setCustomColorMenu() {
459 while (1) {
460 options = {
461 {"Red Channel", setCustomColorSettingMenuR},
462 {"Green Channel", setCustomColorSettingMenuG},
463 {"Blue Channel", setCustomColorSettingMenuB},
464 {"Back", [=]() {} },
465 };
466
467 int selectedOption = loopOptions(options);
468 if (selectedOption == -1 || selectedOption == options.size() - 1) return;
469 }
470}
471
472void setCustomColorSettingMenu(int rgb, std::function<uint32_t(uint32_t, int)> colorGenerator) {
473 uint32_t originalColor = bruceConfig.ledColor;

Callers 1

setLedColorConfigFunction · 0.85

Calls 2

sizeMethod · 0.80
loopOptionsFunction · 0.70

Tested by

no test coverage detected