-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSinzianaPanel.ino
73 lines (59 loc) · 1.29 KB
/
SinzianaPanel.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include <FastLED.h>
#include "Plasma.cpp"
#include "TestPattern.cpp"
#include "Snake.cpp"
#include "Twinkle.cpp"
#include "DeadChannel.cpp"
#include "Bouncy.cpp"
#include "HiRez.cpp"
#include "Boxes.cpp"
#include "Life.cpp"
#include "Sprite.cpp"
#define WIDTH 32
#define HEIGHT 18
#define NUM_LEDS WIDTH * HEIGHT
#define DATA_PIN 9
CRGB leds[NUM_LEDS];
void setup() {
// put your setup code here, to run once:
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
// put your main code here, to run repeatedly:
// TestPattern testPattern(leds, WIDTH, HEIGHT);
// testPattern.start();
doDeadChannel();
doTwinkle();
doDeadChannel();
doPlasma();
doDeadChannel();
doSnake();
doDeadChannel();
doLife();
doDeadChannel();
doSprite();
}
void doDeadChannel() {
DeadChannel deadChannel(leds, WIDTH, HEIGHT);
deadChannel.start();
}
void doPlasma() {
Plasma plasma(leds, WIDTH, HEIGHT);
plasma.start();
}
void doTwinkle() {
Twinkle twinkle(leds, WIDTH, HEIGHT, true, true);
twinkle.start();
}
void doSnake() {
Snake snake(leds, WIDTH, HEIGHT);
snake.start();
}
void doLife() {
Life life(leds, WIDTH, HEIGHT, 56);
life.start();
}
void doSprite() {
Sprite sprite(leds, WIDTH, HEIGHT);
sprite.start();
}