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 LED_PIN 2 | |
#define NUM_LEDS 5 | |
CRGB leds[NUM_LEDS]; | |
void setup() { | |
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS); | |
} | |
void loop() { |
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" | |
// #include <Adafruit_NeoPixel.h> | |
#define NUM_LEDS 28 | |
#define Data_Pin 3 | |
// #define CLK_PIN 8 | |
#define chipset WS2812 | |
// #define COLOR_ORDER GRB | |
#define BRIGHTNESS 100 |
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 <Adafruit_NeoPixel.h> | |
// Pattern types supported: | |
enum pattern { NONE, RAINBOW_CYCLE, THEATER_CHASE, COLOR_WIPE, SCANNER, FADE }; | |
// Patern directions supported: | |
enum direction { FORWARD, REVERSE }; | |
// NeoPattern Class - derived from the Adafruit_NeoPixel class | |
class NeoPatterns : public Adafruit_NeoPixel | |
{ |
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 works with 2 strips | |
#include "FastLED.h" | |
#define NUM_STRIPS 2 | |
#define NUM_LEDS_PER_STRIP 24 | |
#define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS | |
#define NUM_LEDS 28 | |
#define Data_Pin 3 |
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
// Tardis | |
//SFEMP3Library author Bill Porter | |
//SFEMP3Library author Michael P. Flaga | |
/* MP3 Player Shield Music Box Code Example: | |
SparkFun Electronics, Pamela, 1/24/2013 | |
Beerware License | |
Hardware Connections: | |
-LED = D3 on MP3 Player Shield; |
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
//Fusion drive test | |
#include "FastLED.h" | |
#define NUM_LEDS 10 | |
#define Data_Pin 3 | |
#define chipset NEOPIXEL | |
#define BRIGHTNESS 50 |