View Test.ino
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
//It will swap part B and C: | |
void SortMyLeds() { | |
for (byte i=20; i < 30; i++) { | |
CRGB buffer = leds[i]; | |
leds[i] = leds[i-10]; | |
leds[i-10] = buffer; | |
} | |
} |
View golden spiral
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
int width = 300; // crop window resolution | |
int height = 550; | |
int centerX = int(width * 0.72); // precalculated centre of the spiral | |
int centerY = int(height * 0.72); | |
float e = 2.71828; // Eulers number | |
void setup() { // just relevant for Processing | |
size(width, height); |
View analog_greens.ino
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 REDPIN 3 | |
#define GREENPIN 6 | |
#define BLUEPIN 9 | |
#define NUM_LEDS 1 | |
//#define LED_PIN 12 | |
//#define BRIGHTNESS 255 | |
//#define LED_TYPE WS2812 |
View FunkyNoise.ino
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
/* | |
FunkyNoise 1.0 | |
---------------- | |
A Collection Of | |
Animations | |
And Helper Functions | |
for two dimensional led effects | |
on the 32x32 SmartMatrix. | |
View crosswipe
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
// the animation itself | |
// basically just moves the noise in 2 dimensions | |
// and oscillates the border for the mapping methods | |
void CrossNoise2() { | |
currentPalette = RainbowStripeColors_p; | |
noisesmoothing = 20; | |
y[0] += 100; |
View noise_noise.ino
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
void noise_noise1() { | |
CRGBPalette16 Pal( pit ); | |
/* here is how the palette looks like: | |
DEFINE_GRADIENT_PALETTE( pit ) { | |
0, 3, 3, 3, | |
64, 13, 13, 255, // blue | |
128, 3, 3, 3, | |
192, 255, 130, 3, // orange |
View strip_noise.ino
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 12 | |
#define BRIGHTNESS 255 | |
#define LED_TYPE WS2812 | |
#define COLOR_ORDER GRB | |
#define NUM_LEDS (240) | |
CRGB leds[NUM_LEDS]; |
View gist:c8adc84c92be703a52367090dba56b2b
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
// as showed on youtube | |
void noise_audio2() { | |
read_audio(); | |
CRGBPalette16 Pal( pit3 ); // the red one | |
y[0] += (bands[4] - 10) * 4; | |
scale_x[0] = 10000 - (bands[0] * 40); | |
scale_y[0] = scale_x[0]; | |
byte layer = 0; | |
for (uint8_t i = 0; i < Width; i++) { | |
uint32_t ioffset = scale_x[layer] * (i - CentreX); |
View 2animations.ino
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 NUM_LEDS 144 | |
// have 3 independent CRGBs - 2 for the sources and one for the output | |
CRGB leds[NUM_LEDS]; | |
CRGB leds2[NUM_LEDS]; | |
CRGB leds3[NUM_LEDS]; | |
void setup() { |
View Fire2018.ino
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
/* | |
FastLED Fire 2018 by Stefan Petrick | |
The visual effect highly depends on the framerate. | |
In the Youtube video it runs at arround 70 fps. | |
https://www.youtube.com/watch?v=SWMu-a9pbyk | |
The heatmap movement is independend from the framerate. | |
The actual scaling operation is not. |
OlderNewer