Skip to content

Instantly share code, notes, and snippets.

#include "FastLED.h"
#include <SPI.h>
#define NumOfStrips 4
#define NumPixels 300
#define DataRate_Mhz 12
CRGB leds[NumOfStrips][NumPixels * NumOfStrips];
int g, r, b, t;
int head=-1, tail=(head-2);
int Speed, LEDInterval;
#include "FastLED.h"
#include <SPI.h>
#define NumPixels 150 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 12
#define DataPin 11
#define ClockPin 13
CRGB leds[NumPixels];
int r = 0;
#include "FastLED.h"
#include <SPI.h>
#define NumPixels 150 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 12
#define DataPin 11
#define ClockPin 13
CRGB leds[NumPixels];
int r = 0;
#include "FastLED.h"
#include <SPI.h>
#define NumPixels 150 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 12 // how fast data refreshes at
#define DataPin 11 // data pin
#define ClockPin 13 // clock Pin
CRGB leds[NumPixels];
int r = 0, g = 0, b = 0;
@Tejkaran
Tejkaran / FastLED HSV Example
Created March 23, 2017 17:56
FastLED HSV Example
#include "FastLED.h"
#include <SPI.h>
#define NumPixels 50 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 8 // how fast data refreshes at - [----CHECK THIS----] - slower rates are more successful when timing is not essential!!!!!
#define DataPin 11 // data pin
#define ClockPin 13 // clock Pin
CRGB leds[NumPixels];
void setup()
@Tejkaran
Tejkaran / color palette understanding
Created April 7, 2017 17:41
color palette understanding
#include "FastLED.h"
#define NumPixels 51 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 4 // how fast data refreshes at - [----CHECK THIS----] - slower rates are more successful when timing is not essential!!!!!
#define DataPin 11 // data pin
#define ClockPin 13 // clock Pin
CRGB leds[NumPixels];
CRGBPalette16 currentPalette;
TBlendType currentBlending;
@Tejkaran
Tejkaran / all preset color palettes
Created April 18, 2017 10:29
all preset color palettes
#include "FastLED.h"
#define NumPixels 51 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 4 // how fast data refreshes at - [----CHECK THIS----] - slower rates are more successful when timing is not essential!!!!!
#define DataPin 11 // data pin
#define ClockPin 13 // clock Pin
CRGB leds[NumPixels];
CRGBPalette16 currentPalette;
TBlendType currentBlending;
@Tejkaran
Tejkaran / button press
Created April 19, 2017 09:03
button press
#include "FastLED.h"
#define NumPixels 150 // number of LEDs in strip - count starts at 0, not 1
#define Datapin 11 // datapin - green on apa102
#define Clockpin 13 // clockpin - blue on apa102
#define DataRate_Mhz 12
CRGB leds[NumPixels];
int r = 0, g = 255, b = 255;
const int buttonPin = 7; // the number of the pushbutton pin
int buttonPushCounter = 0; // to keep coiunt of whether it should be on or off etc
@Tejkaran
Tejkaran / Color Palette
Created April 25, 2017 10:11
Color Palette
#include "FastLED.h"
#define NumPixels 51 // number of LEDs in strip - count starts at 0, not 1
#define DataRate_Mhz 12 // how fast data refreshes at - [----CHECK THIS----] - slower rates are more successful when timing is not essential!!!!!
#define DataPin 11 // data pin
#define ClockPin 13 // clock Pin
CRGB leds[NumPixels];
uint8_t i;
uint8_t startPoint = 0;
@Tejkaran
Tejkaran / Random funclights
Created July 6, 2017 20:09
Random funclights
#include "FastLED.h"
#define NumPixels 50 // number of LEDs in strip, start count at 0
#define DataRate_Mhz 4 // how fast data refreshes at
#define DataPin 11 // data pin
#define ClockPin 13 // clock Pin
CRGB leds[NumPixels];
CRGBPalette16 currentPalette;
TBlendType currentBlending;