Created
July 8, 2020 22:17
-
-
Save cluelessperson/7226d731650fb654ed8957a2ef9eb50f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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