Skip to content

Instantly share code, notes, and snippets.

@cluelessperson
Created July 8, 2020 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cluelessperson/7226d731650fb654ed8957a2ef9eb50f to your computer and use it in GitHub Desktop.
Save cluelessperson/7226d731650fb654ed8957a2ef9eb50f to your computer and use it in GitHub Desktop.
#include "leds.h"
#include <FastLED.h>
CRGB leds[NUM_LEDS];
void setup_leds () {
FastLED.addLeds<NEOPIXEL, LED_PIN>(leds, NUM_LEDS);
fill_solid(leds, NUM_LEDS, CRGB::Red);
}
#ifndef LEDS_H
#define LEDS_H
#include <FastLED.h>
#define LED_PIN 4
#define NUM_LEDS 100
CRGB leds;
void setup_leds();
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment