User Tools

Site Tools


first_light

Here's a VERY simple routine to see what you've got everything working:

#include "FastLED.h"
#define NUM_LEDS 20

CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812, 12>(leds, NUM_LEDS);
}

void loop() {
  leds[0] = CRGB::White; FastLED.show(); delay(10);
  leds[0] = CRGB::Black; FastLED.show(); delay(10);
}

If this doesn't compile and run, please see our General Troubleshooting page.

first_light.txt · Last modified: 2018/11/10 14:30 by atuline