diff options
author | Marc Miller <marmilicious@users.noreply.github.com> | 2021-04-04 05:31:24 +0300 |
---|---|---|
committer | Marc Miller <marmilicious@users.noreply.github.com> | 2021-04-04 05:31:24 +0300 |
commit | f57fca35cec6f1b3552ad8e12e0c491a92ea58e0 (patch) | |
tree | d8578925348758de1a9879c6ced803413a705927 /examples/NoisePlayground/NoisePlayground.ino | |
parent | b5874b588ade1d2639925e4e9719fa7d3c9d9e94 (diff) |
Some Modernization updates for #1208
As suggested in #1208 this updates:
LEDS.[function] to FastLED.[function]
Switch from byte to uint8_t
Use uint16_t for all LED index variables
Remove messages about minimum version
Diffstat (limited to 'examples/NoisePlayground/NoisePlayground.ino')
-rw-r--r-- | examples/NoisePlayground/NoisePlayground.ino | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/NoisePlayground/NoisePlayground.ino b/examples/NoisePlayground/NoisePlayground.ino index 0d860cf5..a6d09774 100644 --- a/examples/NoisePlayground/NoisePlayground.ino +++ b/examples/NoisePlayground/NoisePlayground.ino @@ -37,11 +37,11 @@ int y_speed=1111; void loop() { // fill the led array 2/16-bit noise values - fill_2dnoise16(LEDS.leds(), kMatrixWidth, kMatrixHeight, kMatrixSerpentineLayout, + fill_2dnoise16(leds, kMatrixWidth, kMatrixHeight, kMatrixSerpentineLayout, octaves,x,xscale,y,yscale,v_time, hue_octaves,hxy,hue_scale,hxy,hue_scale,hue_time, false); - LEDS.show(); + FastLED.show(); // adjust the intra-frame time values x += x_speed; @@ -61,8 +61,8 @@ void setup() { Serial.println("resetting!"); delay(3000); - LEDS.addLeds<WS2811,2,GRB>(leds,NUM_LEDS); - LEDS.setBrightness(96); + FastLED.addLeds<WS2811,2,GRB>(leds,NUM_LEDS); + FastLED.setBrightness(96); hxy = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16(); x = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16(); |