RGB LED cube 5x5x5  1.0
Martin Stejskal, Schmidt Dominik
 All Files Functions Variables Macros Groups Pages
anim_1.c
Go to the documentation of this file.
1 
10 #include "anim_1.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_1[] PROGMEM =
28  { // Serial stream of data
29  // Command start of animation + value (slowdown factor)
30  cmd_anim_start + 1,
31  //Data + other commands (body)
32  // Frame 0
33  0x0000,0x0000,0x0000,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 
40  // Frame 1
41  0x0000,0x0000,0x0000,0x0000,0x0000,
42  0x0000,0x0000,0x0000,0x0000,0x0000,
43  0x0000,0x0000,0x0000,0x0000,0x0000,
44  0x0000,0x0000,0x0000,0x0000,0x0000,
45  0x0000,0x0000,0x0000,0x0000,0x0000,
46 
47 
48  // Frame 2
49  0x0000,0x0000,0x0000,0x0000,0x0000,
50  0x0000,0x0000,0x0000,0x0000,0x0000,
51  0x0000,0x0000,0x0000,0x0000,0x0000,
52  0x0000,0x0000,0x0000,0x0000,0x0000,
53  0x0000,0x0000,0x0000,0x0000,0x0000,
54 
55 
56  // Frame 3
57  // End of animation + option
58  cmd_anim_stop + 1
59  };