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

Method setBrightness

src/fl/control/wled/client.cpp.hpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void WLEDClient::setBrightness(u8 brightness) {
18 mBrightness = brightness;
19 FL_DBG("WLEDClient: setBrightness(" << static_cast<int>(mBrightness) << ")");
20
21 // Apply brightness to controller if we're on
22 if (mOn && mController) {
23 mController->setBrightness(mBrightness);
24 }
25}
26
27void WLEDClient::setOn(bool on) {
28 mOn = on;

Callers 15

setOnMethod · 0.45
sketch_fake.hppFile · 0.45
setupFunction · 0.45
loopFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
loopFunction · 0.45
setupFunction · 0.45

Calls

no outgoing calls

Tested by 2