This file contains hidden or 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]; |
This file contains hidden or 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 |
This file contains hidden or 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); |
This file contains hidden or 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<SmartMatrix.h> | |
#include<FastLED.h> | |
#define kMatrixWidth 32 | |
#define kMatrixHeight 32 | |
byte CentreX = (kMatrixWidth / 2) - 1; | |
byte CentreY = (kMatrixHeight / 2) - 1; | |
#define NUM_LEDS (kMatrixWidth * kMatrixHeight) |
This file contains hidden or 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; |
This file contains hidden or 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. | |
This file contains hidden or 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; | |
} | |
} |
NewerOlder