| 40 | } |
| 41 | |
| 42 | void loop() { |
| 43 | |
| 44 | uint8_t hue = hueSlider.value(); |
| 45 | uint8_t saturation = saturationSlider.value(); |
| 46 | uint8_t value = valueSlider.value(); |
| 47 | |
| 48 | if (autoHue.value()) { |
| 49 | uint32_t now = millis(); |
| 50 | uint32_t hue_offset = (now / 100) % 256; |
| 51 | hue = hue_offset; |
| 52 | hueSlider.setValue(hue); |
| 53 | } |
| 54 | |
| 55 | CHSV hsv(hue, saturation, value); |
| 56 | |
| 57 | leds[0] = hsv2rgb_spectrum(hsv); |
| 58 | leds[2] = hsv2rgb_rainbow(hsv); |
| 59 | leds[4] = hsv2rgb_fullspectrum(hsv); |
| 60 | |
| 61 | FastLED.show(); |
| 62 | } |
nothing calls this directly
no test coverage detected