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
/************************************************* | |
* | |
* This does ***NOT*** use FastLED | |
* instead, uses: | |
* | |
* https://github.com/pololu/apa102-arduino | |
* | |
*************************************************/ | |
/* This example shows how to display a changing rainbow on | |
* an APA102-based LED strip. */ |
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 "FastLED.h" | |
FASTLED_USING_NAMESPACE | |
// FastLED "100-lines-of-code" demo reel, showing just a few | |
// of the kinds of animation patterns you can quickly and easily | |
// compose using FastLED. | |
// | |
// This example also shows one easy way to define multiple | |
// animations patterns and have them automatically rotate. |
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 "FastLED.h" | |
#define DATA_PIN 16 | |
#define CLK_PIN 17 | |
#define LED_TYPE APA102 | |
#define COLOR_ORDER BGR // RGB, BGR | |
#define NUM_LEDS 64 | |
#define BRIGHTNESS 30 | |
CRGB leds[NUM_LEDS]; |