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() {
18 FastLED.setBrightness(50);
19}
20
21void loop() {
23 FastLED.show();
24
25 hue++;
26 delay(50);
27}
CRGB leds[NUM_LEDS]
#define NUM_LEDS
void setup()
uint8_t hue
#define DATA_PIN
void loop()
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
central include file for FastLED, defines the CFastLED class/object
WS2812 controller class.
Definition FastLED.h:218
void fill_rainbow(struct CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5)
Fill a range of LEDs with a rainbow of colors.
Definition fill.cpp:29
@ GRB
Green, Red, Blue (0102)
Definition eorder.h:16
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86