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//............................................................................
24void 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//............................................................................
35void ANIMATION_STATIC( PixieChroma* _p, float delta );
36
37//............................................................................
46void ANIMATION_PALETTE_SHIFT_LEFT( PixieChroma* _p, float delta );
47
48//............................................................................
57void ANIMATION_PALETTE_SHIFT_RIGHT( PixieChroma* _p, float delta );
58
59//............................................................................
68void ANIMATION_GLITTER( PixieChroma* _p, float delta );
69
70//............................................................................
80void ANIMATION_PENDULUM( PixieChroma* _p, float delta );
81
82//............................................................................
92void ANIMATION_PENDULUM_WIDE( PixieChroma* _p, float delta );
93
94//............................................................................
104void _PALETTE_SHIFT( PixieChroma* _p, int8_t amount, float delta );
105
106//............................................................................
116void _PENDULUM( PixieChroma* _p, float center_position, float sway_width );
117
118 //............................................................................
127CRGBPalette16 make_gradient(CRGB col1, CRGB col2);
128
129 //............................................................................
139CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3);
140
141//............................................................................
152CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4);
153
154 //............................................................................
166CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5);
167
168//............................................................................
181CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5, CRGB col6);
182
183//............................................................................
197CRGBPalette16 make_gradient(CRGB col1, CRGB col2, CRGB col3, CRGB col4, CRGB col5, CRGB col6, CRGB col7);
198
199//............................................................................
214CRGBPalette16 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...
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.
void _PALETTE_SHIFT(PixieChroma *_p, int8_t amount, float delta)
Internal animation, shifts the color palette a fixed amount on each run.