FastLED 3.9.15
Loading...
Searching...
No Matches
FxPacifica.ino
Go to the documentation of this file.
1
4
5//
6// "Pacifica"
7// Gentle, blue-green ocean waves.
8// December 2019, Mark Kriegsman and Mary Corey March.
9// For Dan.
10//
11
12
13#define FASTLED_ALLOW_INTERRUPTS 0
14#include <FastLED.h>
15#include "fx/1d/pacifica.h"
16
17using namespace fl;
18
19#define DATA_PIN 3
20#define NUM_LEDS 60
21#define MAX_POWER_MILLIAMPS 500
22#define LED_TYPE WS2812B
23#define COLOR_ORDER GRB
24
27
28void setup() {
29 delay(3000); // 3 second delay for boot recovery, and a moment of silence
31 .setCorrection(TypicalLEDStrip);
32 FastLED.setMaxPowerInVoltsAndMilliamps(5, MAX_POWER_MILLIAMPS);
33}
34
35void loop() {
37 pacifica.draw(Fx::DrawContext(millis(), leds));
38 FastLED.show();
39 }
40}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
#define COLOR_ORDER
#define LED_TYPE
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
central include file for FastLED, defines the CFastLED class/object
Pacifica pacifica(NUM_LEDS)
void setup()
#define MAX_POWER_MILLIAMPS
void loop()
_DrawContext DrawContext
Definition fx.h:21
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1359
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54