GyroLights  0.1
Oakleaf
effectsConfig.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <FastLED.h>
4 #include <projectConfig.h>
5 #include <effects.h>
6 
7 
8 
10 
11 DEFINE_GRADIENT_PALETTE(heatmap_fire_) {
12  0, 0, 0, 0, // black
13  128, 255, 0, 0, //red
14  224, 255, 255, 0, //bright yellow
15  255, 255, 255, 255, // white
16  };
17 
18 DEFINE_GRADIENT_PALETTE(heatmap_test_) {
19  0, 0, 255, 0, // blue
20  255, 255, 0, 0, // yellow
21 };
22 
23 DEFINE_GRADIENT_PALETTE(heatmap_tooff_) {
24  0, 0, 255, 0, // blue
25  255, 0, 0, 0, // yellow
26 };
27 
28 
29 
30 namespace conf {
31 
37  const TaskFunction_t effects[NUM_PINS_ROTARY_SWITCH + 1] = {
38  task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Black>, // first position, i.e. no pin connected. best to leave this staticColor-black
39  // task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Red>,
40  // task_case3<*leds, conf::NUM_LEDS_TOTAL>,
41  task_gyroSimple<*leds, conf::NUM_LEDS_TOTAL>,
42  // task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Green>,
43  // task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Blue>,
44  // task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Yellow>,
45  // task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Magenta>,
46  // task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Cyan>,
47  task_rainbow<*leds, conf::NUM_LEDS_TOTAL, 5>,
48  task_gyroToHeatmap<*leds, conf::NUM_LEDS_TOTAL, heatmap_test_>,
49  };
50 
51 }
CRGB leds[conf::NUM_STRIPS][conf::NUM_LEDS_PER_STRIP]
Definition: main.cpp:28
DEFINE_GRADIENT_PALETTE(heatmap_fire_)
Definition: effectsConfig.h:11
Definition: effectsConfig.h:30
const TaskFunction_t effects[NUM_PINS_ROTARY_SWITCH+1]
effects array
Definition: effectsConfig.h:37
const int NUM_PINS_ROTARY_SWITCH
Definition: projectConfig.h:90
const int NUM_STRIPS
number of led strips
Definition: projectConfig.h:37
const int NUM_LEDS_PER_STRIP
number of leds per individual strip
Definition: projectConfig.h:36
project specific configuration parameters