RGB LED cube 5x5x5
1.0
Martin Stejskal, Schmidt Dominik
|
Animation codes used in animation stream. More...
Go to the source code of this file.
Macros | |
#define | cmd_anim_start (0x8000 + (0<<8)) |
Command animation start. More... | |
#define | cmd_anim_stop (0x8000 + (127<<8)) |
Command animation stop (End of animation) More... | |
Animation codes used in animation stream.
Because for display 1 column is needed only 15 bits, there is one extra
bit, witch can signalizes that data are not directly for framebuffer, but
it is a special command witch, for example, can set PWM.
Instruction format (if MSB is 1, then it is possible change some settings)
|MSB| |LSB|MSB| |LSB|MSB| |LSB| +—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+
| 1 | C | C | C | C | C | C | C | V | V | V | V | V | V | V | V |
+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+
C - command (0~127)
V - value (0~255)
Definition in file animation_codes.h.
#define cmd_anim_start (0x8000 + (0<<8)) |
Command animation start.
Value 0x8000 means, that is command. Then is added command number and
shift to the left 8x (because first 8 bits is for command value).
So we get 0x8000.
Definition at line 29 of file animation_codes.h.
#define cmd_anim_stop (0x8000 + (127<<8)) |
Command animation stop (End of animation)
Value 0x8000 means, that is command. Then is added command number and
shift to the left 8x (because first 8 bits is for command value).
So we get 0xFF00.
Definition at line 43 of file animation_codes.h.