| 456 | } |
| 457 | |
| 458 | void 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 | |
| 472 | void setCustomColorSettingMenu(int rgb, std::function<uint32_t(uint32_t, int)> colorGenerator) { |
| 473 | uint32_t originalColor = bruceConfig.ledColor; |
no test coverage detected