| 175 | } |
| 176 | |
| 177 | void setLightRGBSmooth(int lightId, const ProcessArgs& args, float R, float G, float B) { |
| 178 | // inverse time constant for LED smoothing |
| 179 | const float lambda = 10.f * updateLEDRate; |
| 180 | lights[lightId + 0].setBrightnessSmooth(R, args.sampleTime, lambda); |
| 181 | lights[lightId + 1].setBrightnessSmooth(G, args.sampleTime, lambda); |
| 182 | lights[lightId + 2].setBrightnessSmooth(B, args.sampleTime, lambda); |
| 183 | } |
| 184 | |
| 185 | // hue: 0 - 360 |
| 186 | void setLightHSBSmooth(int lightId, const ProcessArgs& args, float H, float S, float V) { |
nothing calls this directly
no outgoing calls
no test coverage detected