Commands
These commands can be used to fill, move or modify entire areas.
Overview of commands
Action | Command | Variables | |||
---|---|---|---|---|---|
Index | Length | Color | Parameter | ||
No action | 0x00 "Nop" | - | - | - | - |
Fill an area | Start position | Number of pixels | Fill color | - | |
Turn off all pixels | - | - | - | - | |
Copy pixel | Start position | Number of pixels | - | Target position | |
Move pixels / areas | Start position | Number of pixels | - | Target position | |
Shift | |||||
Shift | |||||
Invert order | Start position | Number of pixels | - | - | |
Create color gradient | Start position | Number of pixels | 0x08: color first pixel 0x09: color | - |
Command 0x01 "Fill", Fill an area
A specified area is filled with a color.
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x01 "Fill" | Start position | Number of pixels | Fill color | - |
Command 0x02 "Clear", Clear all pixels
All pixels are deleted.
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x02 "Clear" | - | - | - | - |
Command 0x03 "Copy", Copy number of pixels
A number of pixels are copied to a new position (overwrite).
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x03 "Copy" | Start position | Number of pixels | - | Target position |
Command 0x04 "Move", Move number of pixels to target position
A number of pixels is moved to a new position (overwrite).
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x04 "Move" | Start position | Number of pixels | - | Target position |
Command 0x05 "Rotate Left", 0x06 "Rotate Right", shift within a range
The "Rotate" command moves the pixels within the selected range (from the start position "Index" over the selected number of pixels "Length") (see the following example: range = pixels 3 to 8).
Via "Parameters" the number of shifted positions (see the following example: shifted by 2 pixels).
Pixels that are moved beyond the range limit are added again at the other end of the range (see the following example: Before: pixels 7 and 8 -> After: pixels 3 and 4).
Command 0x05:
Within the selected range is shifted to the left by the specified number of positions.
Command 0x06:
Shift to the right by the specified number of positions within the selected range.
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x05 "Rotate Left | Start position | Number of pixels | - | Shift |
0x06 "Rotate Right | Shift |
Command 0x07 "Reverse", invert pixels in an area
In the selected area, the order of the pixels is inverted.
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x07 "Reverse" | Start position | Number of pixels | - | - |
Command 0x08/0x09 "Gradient", create color gradient in an area
A color gradient is created in the selected area (linear interpolated).
- Via command 0x08 the color of the first pixel is set
- Via command 0x09 the color of the last pixel is set
Command | Variables | |||
---|---|---|---|---|
Index | Length | Color | Parameter | |
0x08/0x09 "Gradient" | Start position | Number of pixels | 0x08: color first pixel 0x09: color | - |