FastLED 3.9.15
Loading...
Searching...
No Matches
AdafruitBridge.ino
Go to the documentation of this file.
1// Simple Adafruit Bridge Demo
2//
3// This example shows how to use the Adafruit_NeoPixel library with FastLED.
4// As long as the Adafruit_NeoPixel library is installed (that is #include <Adafruit_NeoPixel.h>
5// is present), this example will work. Otherwise you'll get warnings about a missing driver.
6
7#define FASTLED_USE_ADAFRUIT_NEOPIXEL
8#include "FastLED.h"
9
10#define DATA_PIN 3
11#define NUM_LEDS 10
12
14uint8_t hue = 0;
15
16void setup() {
17 FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
18 FastLED.setBrightness(50);
19}
20
21void loop() {
23 FastLED.show();
24
25 hue++;
26 delay(50);
27}
void setup()
void loop()
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
uint8_t hue
Definition advanced.h:94
void fill_rainbow(CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) FL_NOEXCEPT
Fill a range of LEDs with a rainbow of colors.
Definition fill.cpp.hpp:29
constexpr EOrder GRB
Definition eorder.h:19
fl::CRGB CRGB
Definition crgb.h:25