Pixie Chroma
Documentation for the easiest 5x7 LED displays for Arduino!
pixie_animations.h
Go to the documentation of this file.
1 
10 #ifndef pixie_animations_h
11 #define pixie_animations_h
12 
13 #include "../Pixie_Chroma.h"
14 //............................................................................
24 void ANIMATION_NULL( PixieChroma* _p, float delta ); // Prototype definition needed so pixie_chroma_internal.cpp can reach these functions as well as the sketch
25 
26 //............................................................................
35 void ANIMATION_STATIC( PixieChroma* _p, float delta );
36 
37 //............................................................................
46 void ANIMATION_PALETTE_SHIFT_LEFT( PixieChroma* _p, float delta );
47 
48 //............................................................................
57 void ANIMATION_PALETTE_SHIFT_RIGHT( PixieChroma* _p, float delta );
58 
59 //............................................................................
68 void ANIMATION_GLITTER( PixieChroma* _p, float delta );
69 
70 //............................................................................
80 void ANIMATION_PENDULUM( PixieChroma* _p, float delta );
81 
82 //............................................................................
92 void ANIMATION_PENDULUM_WIDE( PixieChroma* _p, float delta );
93 
94 //............................................................................
104 void ANIMATION_PALETTE_SHIFT( PixieChroma* _p, int8_t amount, float delta );
105 
106 //............................................................................
116 void _PENDULUM( PixieChroma* _p, float center_position, float sway_width );
117 
118  //............................................................................
127 CRGBPalette16 make_gradient(CRGB col1, CRGB col2);
128 
129  //............................................................................
139 CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3);
140 
141 //............................................................................
152 CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4);
153 
154  //............................................................................
166 CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5);
167 
168 //............................................................................
181 CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5, CRGB col6);
182 
183 //............................................................................
197 CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5, CRGB col6, CRGB col7);
198 
199 //............................................................................
214 CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5, CRGB col6, CRGB col7, CRGB col8);
215 
216 #endif
This is the software documentation for using Pixie Chroma functions on Arduino! For full example usag...
void _PENDULUM(PixieChroma *_p, float center_position, float sway_width)
Internal animation that sways the current color palette left and right with a sine function at 1Hz in...
void ANIMATION_PALETTE_SHIFT(PixieChroma *_p, int8_t amount, float delta)
Internal animation, shifts the color palette a fixed amount on each run.
CRGBPalette16 make_gradient(CRGB col1, CRGB col2)
Converts a set of CRGB colors to a gradient, and creates a color palette from that gradient.
void ANIMATION_PALETTE_SHIFT_RIGHT(PixieChroma *_p, float delta)
Shows the current color palette, while constantly shifting it to the right.
void ANIMATION_STATIC(PixieChroma *_p, float delta)
Shows the current color palette without animation.
void ANIMATION_PALETTE_SHIFT_LEFT(PixieChroma *_p, float delta)
Shows the current color palette, while constantly shifting it to the left.
void ANIMATION_NULL(PixieChroma *_p, float delta)
It does nothing, but it does nothing REALLY WELL! You can enable this empty function with pix....
void ANIMATION_PENDULUM_WIDE(PixieChroma *_p, float delta)
Sways the current color palette left and right with a sine function at 1Hz intervals....
void ANIMATION_PENDULUM(PixieChroma *_p, float delta)
Sways the current color palette left and right with a sine function at 1Hz intervals.
void ANIMATION_GLITTER(PixieChroma *_p, float delta)
Shows the current color palette with a sparkling effect.