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