Skip to content

Instantly share code, notes, and snippets.

@focalintent
focalintent / Lighting up one by one
Last active June 4, 2016 10:32
Lighting up one by one
#include "FastLED.h"
#include <SPI.h>
#define NumPixels 1500 // 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 15
CRGB leds[NumPixels];
int g, r, b, z;
int head=-1, tail=(head-6);
@focalintent
focalintent / interp.cpp
Created October 26, 2016 18:39
Quick demo of what frame interpolation might look like
#include <FastLED.h>
#define NUM_LEDS 60
// how many frames per second you want your animation to be. Your total
// update rate will be ANIM_FPS * STEPS
#define ANIM_FPS 30
// the number of steps you want between each frame - should be a power
// of 2 to keep things sane - e.g. 2,4,8,16,32,64