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

Method SelectEffect

Controllers/NanoleafController/NanoleafController.cpp:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void NanoleafController::SelectEffect(std::string effect_name)
277{
278 json request;
279 request["select"] = effect_name;
280
281 if((APIRequest("PUT", location, "/api/v1/"+auth_token+"/effects", &request) / 100) == 2)
282 {
283 selectedEffect = effect_name;
284 }
285}
286
287void NanoleafController::SetBrightness(int a_brightness)
288{

Callers 1

DeviceUpdateModeMethod · 0.80

Calls 1

APIRequestFunction · 0.85

Tested by

no test coverage detected