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

Method addRealButton

src/fl/sensors/ui_button_integration.cpp.hpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace fl {
10
11void UIButton::addRealButton(fl::shared_ptr<IButtonInput> button) FL_NOEXCEPT {
12 // Stored directly; no concrete-type dependency. Caller may pass any
13 // IButtonInput implementation (Button, mock, etc.).
14 mButtonInput = button;
15}
16
17void UIDropdown::addNextButton(int pin) FL_NOEXCEPT {
18 mNextButton = fl::make_shared<Button>(pin);

Callers 1

setupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected