Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Miller <marmilicious@users.noreply.github.com>2021-04-04 05:31:24 +0300
committerMarc Miller <marmilicious@users.noreply.github.com>2021-04-04 05:31:24 +0300
commitf57fca35cec6f1b3552ad8e12e0c491a92ea58e0 (patch)
treed8578925348758de1a9879c6ced803413a705927 /examples/Cylon
parentb5874b588ade1d2639925e4e9719fa7d3c9d9e94 (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/Cylon')
-rw-r--r--examples/Cylon/Cylon.ino4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/Cylon/Cylon.ino b/examples/Cylon/Cylon.ino
index e1e20daa..96d4949a 100644
--- a/examples/Cylon/Cylon.ino
+++ b/examples/Cylon/Cylon.ino
@@ -15,8 +15,8 @@ CRGB leds[NUM_LEDS];
void setup() {
Serial.begin(57600);
Serial.println("resetting");
- LEDS.addLeds<WS2812,DATA_PIN,RGB>(leds,NUM_LEDS);
- LEDS.setBrightness(84);
+ FastLED.addLeds<WS2812,DATA_PIN,RGB>(leds,NUM_LEDS);
+ FastLED.setBrightness(84);
}
void fadeall() { for(int i = 0; i < NUM_LEDS; i++) { leds[i].nscale8(250); } }