MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / SetLEDs

Method SetLEDs

Controllers/LEDStripController/LEDStripController.cpp:162–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void LEDStripController::SetLEDs(std::vector<RGBColor> colors)
163{
164 switch(protocol)
165 {
166 case LED_PROTOCOL_KEYBOARD_VISUALIZER:
167 SetLEDsKeyboardVisualizer(colors);
168 break;
169
170 case LED_PROTOCOL_ADALIGHT:
171 SetLEDsAdalight(colors);
172 break;
173
174 case LED_PROTOCOL_TPM2:
175 SetLEDsTPM2(colors);
176 break;
177
178 case LED_PROTOCOL_BASIC_I2C:
179 SetLEDsBasicI2C(colors);
180 break;
181 }
182}
183
184void LEDStripController::SetLEDsKeyboardVisualizer(std::vector<RGBColor> colors)
185{

Callers 3

DeviceUpdateLEDsMethod · 0.45
UpdateZoneLEDsMethod · 0.45
UpdateSingleLEDMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected