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

0x01 "Fill"

Start position

Number of pixels

Fill color

-

Turn off all pixels

0x02 "Clear"

-

-

-

-

Copy pixel

0x03 "Copy"

Start position

Number of pixels

-

Target position

Move pixels / areas

0x04 "Move"

Start position

Number of pixels

-

Target position

0x05 "Rotate Left"

Shift

0x06 "Rotate Right"

Shift

Invert order

0x07 "Reverse"

Start position

Number of pixels

-

-

Create color gradient

0x08/0x09 "Gradient"

Start position

Number of pixels

0x08: color first pixel

0x09: color
last pixel

-

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

-

Commands 1:
Example Command 0x01 "Fill"

Command 0x02 "Clear", Clear all pixels

All pixels are deleted.

Command

Variables

Index

Length

Color

Parameter

0x02 "Clear"

-

-

-

-

Commands 2:
Example Command 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

Commands 3:
Example Command 0x03 "Copy"

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

Commands 4:
Example Command 0x04 "Move"

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

Commands 5:
Example Command 0x06 "Rotate Right”

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

-

-

Commands 6:
Example Command 0x07 "Reverse"

Command 0x08/0x09 "Gradient", create color gradient in an area

A color gradient is created in the selected area (linear interpolated).

Command

Variables

Index

Length

Color

Parameter

0x08/0x09 "Gradient"

Start position

Number of pixels

0x08: color first pixel

0x09: color
last pixel

-

Commands 7:
Example Command 0x08 / 0x09 "Gradient”