| 829 | } |
| 830 | |
| 831 | void fill_noise8(CRGB *leds, int num_leds, |
| 832 | fl::u8 octaves, fl::u16 x, int scale, |
| 833 | fl::u8 hue_octaves, fl::u16 hue_x, int hue_scale, |
| 834 | fl::u16 time) { |
| 835 | |
| 836 | if (num_leds <= 0) return; |
| 837 | |
| 838 | for (int j = 0; j < num_leds; j += 255) { |
| 839 | const int LedsRemaining = num_leds - j; |
| 840 | const int LedsPer = LedsRemaining > 255 ? 255 : LedsRemaining; // limit to 255 max |
| 841 | |
| 842 | if (LedsPer <= 0) continue; |
| 843 | FASTLED_STACK_ARRAY(fl::u8, V, LedsPer); |
| 844 | FASTLED_STACK_ARRAY(fl::u8, H, LedsPer); |
| 845 | |
| 846 | fl::memset(V, 0, LedsPer); |
| 847 | fl::memset(H, 0, LedsPer); |
| 848 | |
| 849 | fill_raw_noise8(V, LedsPer, octaves, x, scale, time); |
| 850 | fill_raw_noise8(H, LedsPer, hue_octaves, hue_x, hue_scale, time); |
| 851 | |
| 852 | for (int i = 0; i < LedsPer; ++i) { |
| 853 | leds[i + j] = CHSV(H[i], 255, V[i]); |
| 854 | } |
| 855 | } |
| 856 | } |
| 857 | |
| 858 | void fill_noise16(CRGB *leds, int num_leds, |
| 859 | fl::u8 octaves, fl::u16 x, int scale, |
nothing calls this directly
no test coverage detected