FastLED 3.9.15
Loading...
Searching...
No Matches
FxPacifica.ino
Go to the documentation of this file.
1// @filter: (memory is large)
2
12
13//
14// "Pacifica"
15// Gentle, blue-green ocean waves.
16// December 2019, Mark Kriegsman and Mary Corey March.
17// For Dan.
18//
19
20// FastLED.h must be included first to trigger precompiled headers for FastLED's build system
21#include <FastLED.h>
22
23// Note: FASTLED_ALLOW_INTERRUPTS improves performance on AVR platforms
24// Commented out to enable precompiled headers for faster compilation
25// #define FASTLED_ALLOW_INTERRUPTS 0
26#include "fl/fx/1d/pacifica.h"
27#include "fl/math/screenmap.h"
28
29
30#define DATA_PIN 3
31#define NUM_LEDS 60
32#define MAX_POWER_MILLIAMPS 500
33#define LED_TYPE WS2812B
34#define COLOR_ORDER GRB
35
38
39void setup() {
40 Serial.begin(115200);
43 .setCorrection(TypicalLEDStrip)
44 .setScreenMap(screenMap);
45 FastLED.setMaxPowerInVoltsAndMilliamps(5, MAX_POWER_MILLIAMPS);
46}
47
48void loop() {
51 FastLED.show();
52 }
53}
#define COLOR_ORDER
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::Pacifica pacifica(NUM_LEDS)
void setup()
#define MAX_POWER_MILLIAMPS
void loop()
#define LED_TYPE
::fl::DrawContext DrawContext
Definition fx.h:21
static ScreenMap DefaultStrip(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.2f, float completion=.9f) FL_NOEXCEPT
fl::ScreenMap screenMap
Definition Corkscrew.h:101
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1045
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38
#define Serial
Definition serial.h:304