RGB LED cube 5x5x5  1.0
Martin Stejskal, Schmidt Dominik
 All Files Functions Variables Macros Groups Pages
anim_simple_snake.c
Go to the documentation of this file.
1 
10 #include "anim_simple_snake.h"
11 
12 /* Data format (binary data for framebuffer)
13  * |MSB| |LSB|MSB| |LSB|MSB| |LSB|
14  * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
15  * | 0 | R | R | R | R | R | G | G | G | G | G | B | B | B | B | B |
16  * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
17  *
18  * Instruction format (if MSB is 1, then it is possible change some settings)
19  * |MSB| |LSB|MSB| |LSB|MSB| |LSB|
20  * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
21  * | 1 | C | C | C | C | C | C | C | V | V | V | V | V | V | V | V |
22  * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
23  * C - command (0~127)
24  * V - value (0~255)
25  *
26  */
27 const uint16_t bin_anim_simple_snake[] PROGMEM =
28  { // Serial stream of data.
29  cmd_anim_start + 25, /* Command start of animation + value
30  * (slowdown factor)
31  */
32  // Data + other commands
33  0x0080,0x0080,0x0080,0x0000,0x0000,
34  0x0000,0x0000,0x0000,0x0000,0x0000,
35  0x0000,0x0000,0x0000,0x0000,0x0000,
36  0x0000,0x0000,0x0000,0x0000,0x0000,
37  0x0000,0x0000,0x0000,0x0000,0x0000,
38 
39  0x0000,0x0080,0x0080,0x0080,0x0000,
40  0x0000,0x0000,0x0000,0x0000,0x0000,
41  0x0000,0x0000,0x0000,0x0000,0x0000,
42  0x0000,0x0000,0x0000,0x0000,0x0000,
43  0x0000,0x0000,0x0000,0x0000,0x0000,
44 
45  0x0000,0x0000,0x0080,0x0180,0x0000,
46  0x0000,0x0000,0x0000,0x0000,0x0000,
47  0x0000,0x0000,0x0000,0x0000,0x0000,
48  0x0000,0x0000,0x0000,0x0000,0x0000,
49  0x0000,0x0000,0x0000,0x0000,0x0000,
50 
51  0x0000,0x0000,0x0000,0x0380,0x0000,
52  0x0000,0x0000,0x0000,0x0000,0x0000,
53  0x0000,0x0000,0x0000,0x0000,0x0000,
54  0x0000,0x0000,0x0000,0x0000,0x0000,
55  0x0000,0x0000,0x0000,0x0000,0x0000,
56 
57 
58  cmd_anim_stop + 1 // End of animation + option
59  };