This file contains hidden or 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
| // import the FastLED Library for controlling NeoPixels | |
| #include "FastLED/FastLED.h" | |
| FASTLED_USING_NAMESPACE; | |
| // setup the LED ring which has 24 LEDs and | |
| // communicates via pin D6 | |
| #define NUM_LEDS 24 | |
| #define LED_PIN D6 | |
| CRGB leds[NUM_LEDS]; |
This file contains hidden or 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 <Adafruit_NeoPixel.h> | |
| #define PIN 1 | |
| #define N_LEDS 100 | |
| #define START 50 | |
| Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800); | |
| void setup() { | |
| strip.begin(); |
NewerOlder