FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setTemperature()

void fl::WLEDClient::setTemperature ( CRGB temperature)

Set color temperature.

Parameters
temperatureColor temperature RGB values

Adjusts color output for perceived color temperature. Delegates to controller's setTemperature method.

Definition at line 112 of file client.cpp.hpp.

112 {
113 FL_DBG("WLEDClient: setTemperature(r=" << static_cast<int>(temperature.r)
114 << ", g=" << static_cast<int>(temperature.g)
115 << ", b=" << static_cast<int>(temperature.b) << ")");
116
117 if (!mController) {
118 return;
119 }
120
121 mController->setTemperature(temperature);
122}
fl::shared_ptr< IFastLED > mController
Definition client.h:148
#define FL_DBG
Definition log.h:388

References FL_DBG, and mController.